javascript - How to add a navigation sidebar and a footer to an AngularJS template without ng-include.? -


i'm new angular development. have been using few paid angular admin themes. in of them, developers have added ng-view , ng-class attribute index.html. want know how add sidebar navigation , footer every page without using ng-include.

if not want use ng-include, can put html directly in index.html. called layout template, view contains common elements along application.

in summary, in index.html outside ng-view element going appear in every page (as long use module such angular-route routing within same original html document (e.g. index.html)).

i recommend follow official angularjs tutorial if new framework. also, ng-book ari lerner must-read on topic.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -