Gabe's Angular-SPA Boilerplate
Instructions:
-
Run
npm install
. Then rungulp
. -
Make your pages inside app/pages/[your-page]. Add 3 files: --yourStyles.styl --yourController.js --yourView.html
-
For each page in app.route.js:
.when('/', {
templateUrl: 'app/pages/[your-page]/view.html',
controller: '[YourCtrl]'
})
-
Edit ctrl.js & view.html as if it were a regular Angular app!
-
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) -
For a sandbox, just edit the 'app/sandbox' files. Modify app.route.js to your liking.