Understanding AngularJS

AngularJS provides a very structured framework based on an MVC (Model View Controller) model. This framework enables you to build structured applications that are robust and easily understood and maintained. If you are not familiar with the MVC model, the following paragraph provides a quick synopsis to help you understand the basics. It is by no means complete and only intended to give you enough reference to see how AngularJS applies MVC principles. The Wikipedia website is a great resource if you want additional information about MVC in general.

In MVC, there are three components: the Model is the data source, View is the rendered webpage, and the Controller handles the interaction between the two. A major purpose of MVC is to separate out responsibilities in your JavaScript code to keep it clean and easy to follow. AngularJS is one of the best MVC frameworks available because it makes it very easy to implement MVC.

To get started with AngularJS, you first need to understand the various components that you will be implementing and how they interact with each other. The following sections discuss the various components involved in an AngularJS application, their purpose, and what each is responsible for.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset