4. Key Features of ANGULARJS
• Template and Expressions
• Model
• Data Binding
• Controller and $scope
• Filters
• Services
• Directives
5. Template and Expressions
Template are JavaScript-like code snippets that are usually placed in bindings such as {{
expression }}
<body>
1+2={{1+2}}
</body>
6. Model
Binding the view into the model, which other directives such as input, textarea or select
require.
Setting related CSS classes on the element (ng-valid, ng-invalid, ng-dirty, ng-pristine, ng-
touched, ng-untouched, ng-empty, ng-not-empty) including animations.
14. Directive
The directives can be placed in element names, attributes, class names, as well as
comments. Directives are a way to teach HTML new tricks.
A directive is just a function which executes when the compiler encounters it in the DOM.
Lazily instantiated – Angular only instantiates a service when an application component depends on it.
Singletons – Each component dependent on a service gets a reference to the single instance generated by the service factory.