Platinum Partner

AngularJS Bootstrap Single Page App Template

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
  


  
  
  
  

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}