Wednesday, February 10, 2016

AngularJS Structure

Wednesday, February 10th 2016

AngularJS structure: 
So why is angular structured the way it is? Well we have our models (factories) and our views (controllers). The angularJS models store data, useful info, properties and methods while controllers deal with the logic/behavior of the website. So the views are pulling references (data, functions, etc) from the models (factories) and mixing them together in different patterns make the website behave in a certain way. The W in MVW stands for 'whatever', which means that developers have control over how they structure angular, depending on their needs. (Which is smart because most developers choose MVC's based on their needs anyways, so giving them even more flexibility with MV + 'W' makes it more appealing).

References:
https://angularjs.org/
http://www.w3schools.com/angular/angular_intro.asp

No comments:

Post a Comment