Angularjs Examples

AJS Examples


AngularJS Templates

In AngularJS, templates consists of HTML DOM elements with AngularJS attributes. AngularJS combines the template with information from the model and controller to render the dynamic view that an user can see in the browser.

AngularJS have a nice directive called ng-include which helps you to organize your UI modules. In order to include HTML page inside an HTML page you probably use either Ajax or any server side script like PHP, ASP, JSP etc. AngularJS makes it possible for you now.

Using ng-include directive, you can embed/include HTML pages within an HTML page.

Syntax

AngularJS Templates Example

See Live Example