javascript - how to Merge the .html file into one Master file with all scope values from releated html files in Angularjs -


hi using angular js have 3 html file like.header,menu , footer.html combined , show ecah html file in each div through id 3 html file 1 html file name called master.html

code used link html

<script>     $(function () {         $("#navbar-container").load("header.html");         $("#sidebar").load("slidebar.html" );         $("#footer").load("footer.html");     });  </script>  

header.html

i have 1 scope variable in header page , it's shows correctly scope variable hello world.but when combined means merge master page it's not working scope values not fetched don't why solve problem

please show how did initialize "scope variable" in header? think want use here nginclude directive includes additional html code current template.

so you'r example might like:

<div ng-include="header.html"></div>; .... 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -