- 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.
- 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.
- Model
- It is just a java script object.
- Model represent an object with some key and value.
- View
- View is nothing but just the HTML.
- 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 $.
- 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.
- Filters
- It is used to filter the result according to user requirements.
- You can also format your result using filters.
- Routing
- It is used to configure the navigations.
- You can go from one page to another using routing.
Tuesday, 11 March 2014
Angular JS Features.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment