Scopes and the Data Model

AngularJS introduces the concept of a scope. A scope is really just a JavaScript representation of data used to populate a view presented on a webpage. The data can come from any source, such as a database, a remote web service, or the client side AngularJS code, or it can be dynamically generated by the webserver.

A great feature of scopes is that they are just plain JavaScript objects, which means you can manipulate them as needed in your AngularJS code with ease. Also, you can nest scopes to organize your data to match the context that they are being used in.

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

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