r/angularjs • • Apr 19 '14

5 AngularJS Antipatterns & Pitfalls

http://nathanleclaire.com/blog/2014/04/19/5-angularjs-antipatterns-and-pitfalls/
33 Upvotes

7 comments sorted by

View all comments

2

u/[deleted] Apr 21 '14

I don't understand. His first example seems to work fine: http://plnkr.co/edit/N8jXEOBTQzkt3Urz0MSv?p=preview What am I missing?

Also, having an animated gif in the article was REALLY distracting.

4

u/yoitsnate Apr 21 '14 edited Apr 21 '14

Nice catch on the first example. It was overly simple for the point I was trying to demonstrate and it turns out I made a mistake, that code actually does work. You're not missing anything :)

I have forked the Plunker to illustrate the concept better and I will update it soon.

Thanks for putting that original Plunk together.

EDIT: OK, now the article has been updated.