My index.html
looks basically like this:
<body>
<header ng-controller="navCtrl">
<!-- quite a bit of html for the menu -->
</header>
<div ng-view>
</div>
</body>
Since I cannot use multiple ng-view
s on one page I was wondering what would be the best way to move the menu (<header />
) into a partial so my index.html
stays nice and clean?
ngInclude
is what you're looking for. – CodeHater Jun 6 '14 at 12:53