I was a little daunted. Having never made a single page Javascript application, I am pretty behind the times on frameworks and new-age-javascript-jitsu.
I looked at Backbone, Ember, Meteor, Backbone.Marionette, etc. etc. etc. These all freak me out, so much extra junk I’m not used to, why do I want to make models and such? I just want simple jQuery stuff as far as I can tell. What hidden magic lies in these libraries? How can it be so useful?
@CKCollab
#Javascript, I still don’t understand why #AngularJS, #CanJS, #EmberJS, whatever are useful. Is there an open source project demonstrating?
So. To learn why these libraries help out so much, I’ll need to dive into it.
Perfect timing
I’m building a large application for a local company right now, it’s going to be a single page application. I researched for a while, since I’ve never made an SPA before, and I was sooo confused! There are so many options and they all have great communities behind them.
The reason I chose Knockout was its simplicity, the tutorials on the site and the small size of the library.
Here’s all I had to do to use it:
|
1 2 3 4 5 6 |
gk.addPage = {
status: ko.observable('Step 1 - Fill out da form!');
}
ko.applyBindings(gk.addPage); |
That’s it! Now to modify that I have to do
|
1 2 |
gk.addPage.status('new data'); |
and it updates on screen! How nice.