How to Use Templates in AngularJS?

In AngularJS, specific elements and their attributes are written as templates with HTML. To render the dynamic view template AngularJS combines the template with information from the model and controller that is displayed for users in a browser.

Below are the types of Angular elements and attributes which can used:

  • Directive — An attribute or element that augments an existing DOM element or represents a reusable DOM component.
  • Markup — The double curly brace notation {{ }} to bind expressions to elements is built-in Angular markup.
  • Filter — Formats data for display.
  • Form controls — Validates user input.

The following example shows how to use templates:

Reference

https://docs.angularjs.org/guide/templates

 

Close