Updated on Kisan Patel
ng-include, you can fetch, compile, and include an external HTML fragment into your current application.
For example, your main HTML file can have different sections like a header, a footer, a sidebar etc. You can put the template for these components in separate HTML files, and include them into your main HTML.
The following is an example code for the usage of the ngInclude directive:
<h1>This is the studentView1</h1>
<h1>This is the studentView2</h1>
You can also use
ng-include as a standalone element as follow: