Built-in directives
Qus. 1 : Which directive conditionally displays content?
- ng-if
- ng-show-only
- ng-hide-if
- ng-condition
- ng-model
- ng-repeat
- ng-bind
- ng-app
- ng-model
- ng-repeat
- ng-bind
- ng-if
- Automatic synchronization of data between model and view components
- Automatic synchronization of data between model and controller components
- Technique to save HTML data in the database
- Technique to bind database data to HTML control
- It is the synchronization between the model and the view
- ng-model directive is used to bind data from the model to the view on HTML controls
- double brackets (( )) can be used to display content from the model
- ng-bind directive is used to bind the inner HTML of the element to the specified model Property
Programs
Demonstrate how to use the ng-repeat directive to loop through an array of objects and display their properties in an HTML table.