I'm new to AngularJS. In our project, we're forced to create our web app(multi-pages) in angularJS, though we know AngularJS is only for SPA. At the moment I've a homepage, which is created in AngularJS and all other connected pages are in jQuery.
I've created a navBar in the Homepage, which needs to show up on all other pages as well. But at the moment the navBAr data is not showing up in the other pages. How could I do that? How do I reuse my navCtrl in all the pages?
Please note that footer is still in jQuery, and will have to do the same with that as well. This is how my homepage looks as of now:
<body ng-app="App">
<nav ng-controller="navCtrl"></nav>
<main ng-controller="mainCtrl"></main>
<footer></footer>
</body>
Why don't you try this way?
– Aug 07 '17 at 09:13