News for hackers. Stuff that matters.
Re:Why does Angular.js rock? by jacques_chester on Saturday August 03, 2013 @11:37AM (#6152385)
Knockout only really works if you totally intermix your model code with it. You have to annotate every darn thing until it's impossible to see what the underlying logic was.

Angular's docs suck, but my own code is safely isolated and can be easily developed and tested in isolation.

Re:Why does Angular.js rock? by andrewflnr on Saturday August 03, 2013 @09:13PM (#6154141)
Hm. In my case, I would have had to invent something like ko.observable anyway, so I guess it works for me. Maybe I'll learn better when things get more complicated.
Re:Why does Angular.js rock? by jacques_chester on Saturday August 03, 2013 @10:06PM (#6154270)
I'm not saying that it's wrong. KO's approach is a defensible architectural alternative. I guess I took an unnecessarily snotty tone in my previous comment.

However, KO's design it didn't sit well with how I wanted things to work. Basically I want plain javascript for my own core logic and then to have round-trip binding to the user interface with a minimum of fuss.

For simple cases, Angular does that reasonably well. More complicated cases require a much more intimate engagement with Angular's design and architecture, which is where my gripe about the docs becomes relevant.

Re:Why does Angular.js rock? by andrewflnr on Saturday August 03, 2013 @11:57PM (#6154580)
No offense taken. I did find that my "model" code was basically the same as the viewmodel. I'm not sure how much that matters or how hard it will be to change, hence "maybe I'll learn better".