``` --- ## Definition and Usage The **ng-include**"> ``` --- ## Definition and Usage The **ng-include**" />
Easy Tutorial
❮ Ng Ng Keypress Ng Ng Checked ❯

AngularJS ng-include Directive

AngularJS Reference Manual


AngularJS Example

Include an HTML file:

<div ng-include="'myFile.htm'"></div>

Definition and Usage

The ng-include directive is used to include an external HTML file.

The included content will be treated as a child node of the specified element.

The value of the ng-include attribute can be an expression that returns a filename.

By default, the included file must be from the same domain.


Syntax

The ng-include directive is used as an element:

❮ Ng Ng Keypress Ng Ng Checked ❯