Skip to content
Permalink
develop
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Gabe's Angular-SPA Boilerplate

Instructions:

  1. Run npm install. Then run gulp.

  2. Make your pages inside app/pages/[your-page]. Add 3 files: --yourStyles.styl --yourController.js --yourView.html

  3. For each page in app.route.js:

.when('/', {
  templateUrl: 'app/pages/[your-page]/view.html',
  controller: '[YourCtrl]'
})
  1. Edit ctrl.js & view.html as if it were a regular Angular app!

  2. To modify default root view (i.e. nav/footer), edit root-view files (To customize nav/footer via pages views, do something like $scope.nav.color = blue; to access parent scope)

  3. For a sandbox, just edit the 'app/sandbox' files. Modify app.route.js to your liking.