You can embed external HTML pages into AngularJS. The most common way, is to use an ajax request to fetch data from the server, and then put the data to the innerHTML of an HTML element.
Basically, ng-include fetches then compiles and includes an external HTML fragment.
<ng-include src="string" [onload="string"] [autoscroll="string"]>
…
</ng-include>
Directive Info:
– This directive creates new scope.
– This directive executes at priority level 400.
<div class="container">
<div ng-include="'firstpage.htm'"></div>
<div ng-include="'secondpage.htm'"></div>
</div>
For ngInclude references click here.
In a world where digital presence is paramount, the question isn't whether you should do…
Over the years, people have experimented with various methods to maintain healthy and beautiful hair.…
Your brand more than developing an attractive and creative logo and infectious motto. It's the…
Introduction Are you someone who has suffered from a personal injury and want to file…
Operating from home has emerged as one of the most popular ways of doing jobs…
If the consequences of our society’s ever-growing debt are what worries you, then it is…