Embedding html page within html is not supported by HTML that’s why we used AngularJS Include Directives. By using ng-controller directive we can easily do the task.
<element ng-include=" ">content...<element>
Including AngularJS code:Similar to previous case you include the html file by using ng-include similarly it can contain AngularJS code.
Include Cross Domains:If you want to include files from another domain then you can add a whitelist of legal files or domains in the config function of your application.
- AngularJS | API
- AngularJS | Directive
- AngularJS | Routing
- AngularJS | Modules
- AngularJS | ng-csp Directive
- AngularJS | Filters
- AngularJS | Expressions
- AngularJS | Controllers
- AngularJS | ng-jq Directive
- AngularJS | ng-cut Directive
- AngularJS | ng-src Directive
- AngularJS | HTML DOM
- AngularJS | ng-value Directive
- AngularJS | Services
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.