AngularJS Bootstrap Single Page App Template
Join the DZone community and get the full member experience.Join For Free
The code snippet allows one to get started with single page app using AngularJS and Bootstrap in no time.
Following are key things to note:
- Routes defined for different views (pages)
- The code snippet is for the main page, say index.html, where ng-view directive is placed in order to load different views
- Separate HTML page representing different views; Create a folder called as views in the same folder as index.html and create two files named as home.html and link1.html.
- Unique controllers (HomeCtrl, Link1Ctrl) defined for each view (page)
Single Page App Template