I am using index.html created with Yeoman, which looks something like this:
<html> <head>...</head> <body> <div ng-include="'views/main.html'"></div> </body> </html>
Now I know that I canโt use ng-include inside another ng-include , so Iโm not even trying to do this, but thatโs the goal that I want to achieve.
I am using ui.router in my main.html for nested views, but I cannot do something like this:
<header class="header"> </header> <div ui-view="" class="container"></div>
One naive solution would be to exclude the first ng-include and use it in main.html for the header, footer, and the like.
So, hit me with what you have, but not with that!
Edit: this is what I would like to have (but can't, since I'm already inside ng-include )
<div ng-include="'views/parts/header.html'"></div> <div ui-view="" class="container"></div>
javascript angularjs angular-ui-router angularjs-ng-include
domokun
source share