Pages

Tuesday 11 March 2014

Angular JS Features.

  1. Controller
    • It is just a java script function.
    • It contains data.
    • It specifies the behavior.
    • It should contain only the business logic needed for a single view.
  2. Scope
    • An object that refer to the application model
    • An execution context for expression like {{animal.property}}
    • Scopes are arranged in hierarchical structure which mimic the DOM structure of the application.
    • Scopes can watch expressions and propagate events.
     
  3.  Model
    • It is just a java script object.
    • Model represent an object with some key and value.
  4. View
    • View is nothing but just the HTML.
  5. Services
    • Services in Angular JS are singleton.
    • It is used to perform the common task between the controllers.
    • We can access the common task between the controllers using services.
    • Angular JS have some built in services that start with a symbol $.
  6. Directives
    • Directives are used to remove the code duplication.
    • You can define you your own directive and use that according to your requirement.
    • 'ng' prefix in Angular JS stands for built in directives like ng-app, ng-model etc.
  7. Filters
    • It is used to filter the result according to user requirements.
    • You can also format your result using filters.
  8. Routing
    • It is used to configure the navigations.
    • You can go from one page to another using routing.

No comments:

Post a Comment