In HTML you can not include files like HTML into another HTML pages. To achieve this functionality you had to choose either Ajax call or server side includes like php, jsp.
But using AngularJS you can embed HTML page within a HTML page using ng-include directive.
By default, for same domain and protocol as a application document, the template URL is restricted.
For detail documentation click here.
<div ng-app="" ng-controller="userController"> <div ng-include="'header.htm'"></div> <div>...</div> <div ng-include="'footer.htm'"></div> </div>
Read Also: Ajax call – AngularJS
Battery coating is the process of applying uniform layers of active materials—such as cathode and…
Let’s face it. Tech buzzwords get thrown around a lot—especially when it comes to how…
In today’s digital world, the boundaries between technology, finance, and innovation are rapidly disappearing. Businesses…
Backyard gatherings like BBQs, family reunions, and garden parties are an exciting way to enjoy…
Marketers are always on the lookout for more effective ways to reach their target audiences.…
Does your phone control your mind more than you control your phone? Modern life exploits…