Since the past year, I have been observing the market and adoption of AngularJS in the wild. I really like what I am seeing. It surely has come a long way from being called a toy framework, esoteric research framework to where it is today.
Having worked with this framework from the start and having answered quite a few questions about it on Stack Overflow I have noticed a few common mistakes that people do when working with AngularJS. I will in this post attempt to address a few of these problems and what would be the right way to do the same.
* DONT : Access DOM in the Controller
* DONT: Use Selectors in Directives
* DONT: Use Scope elsewhere ( other than controller )
* DONT: Write business logic in controllers
* DO: data in Services
Via Jan Hesse