Angular proof of concept demos
POC demos with pure angular: https://angular-poc-demos.firebaseapp.com
Prerequisites
- [ruby, compass] (http://compass-style.org/install/)
- [node.js] (http://nodejs.org/)
- [grunt] (http://gruntjs.com/)
- [bower] (http://bower.io/)
Getting started
-
Fork/clone a copy to your machine
-
Install the dependancies:
bower install && npm install
-
Run the app:
grunt serve
-
Run the tests:
grunt test
What's included
various examples of:
- forms
- ng-repeat
- services
- directives
- scope watch
- ui
- unit tests with jasmine, karma
- e2e tests with protractor
Please note, [ui-router] (https://github.com/angular-ui/ui-router) is in use.
Grunt tasks
grunt serve
- starts the server, watches for changes and runs unit tests if any changes to js.
grunt test
- starts the server, runs unit and e2e tests.
grunt karma:unit
- run the unit tests once only.
grunt karma:continuous
- run the unit tests and auto watch.
Misc
You'll notice that instead of including routes in app.js
, we have our own angular module called routes
.
In app/scripts/routes.js
, we use [constants] (https://docs.angularjs.org/guide/providers) to manage our state names, and hook these up with ui-router $stateProvider
in the config.
Contributions
Always welcome, please submit a PR :-)