ttbarnes / angular-proof-of-concept-demos

POC demos with pure angular

Home Page:https://angular-poc-demos.firebaseapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Angular proof of concept demos

POC demos with pure angular: https://angular-poc-demos.firebaseapp.com

Prerequisites

Getting started

  1. Fork/clone a copy to your machine

  2. Install the dependancies: bower install && npm install

  3. Run the app: grunt serve

  4. 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 :-)

About

POC demos with pure angular

https://angular-poc-demos.firebaseapp.com


Languages

Language:JavaScript 81.8%Language:HTML 11.7%Language:CSS 6.5%