Do you understand that with Angular you read and write to the model... never to the page? (a.k.a. Forget about jQuery)
6/03/2019 4:56 AM by
The most common mistake that developers make when moving from jQuery to Angular is that they continue to think about updating the page.
- Figure: In jQuery, you design a page and then use jQuery to perform interactions with the page e.g. reading and setting the values of input boxes, updating the content of divs or handling button events
- Figure: Bad Example - using jQuery on Angular views will lead to worlds of pain
In Angular, you do not interact with the page you update the model, and the page is just displaying a view of the model.
Further reading: http://stackoverflow.com/questions/14994391/thinking-in-angularjs-if-i-have-a-jquery-background
Do you feel this rule needs an update?