lab13_angularjs icon indicating copy to clipboard operation
lab13_angularjs copied to clipboard

Binding 2

Open mgrandrath opened this issue 10 years ago • 2 comments

I played around with your code some more. I hoped that I could use some more of Angular's binding magic but that didn't work out very well. If there is a more Angular-y way of doing things it's not very obvious to me.

PS. You'll notice that I wrote tests second. This is not how I usually work. My plan was to try things in a spike and implement it test-driven afterwards. Unfortunately the spike took so long and Angular did a fair amount of frustrating that I just fixed the tests and called it a day.

mgrandrath avatar Nov 23 '14 20:11 mgrandrath

Thanks!

the spike took so long and Angular did a fair amount of frustrating that I just fixed the tests and called it a day.

That pretty much sums up my experience with Angular. :-(

jamesshore avatar Nov 23 '14 20:11 jamesshore

Looking at your code, it looks like you went with the 'change method' approach we used in the React review, rather than surrounding the immutable value objects with a mutable scope object as you had originally mentioned. Is that correct? Did the mutable scope object approach not work?

jamesshore avatar Nov 23 '14 21:11 jamesshore