Skip to content

Instantly share code, notes, and snippets.

@freizl
Last active December 31, 2015 14:19
Show Gist options
  • Save freizl/7999930 to your computer and use it in GitHub Desktop.
Save freizl/7999930 to your computer and use it in GitHub Desktop.
AngularJS

use yeoman to generate angular seed project

Installation

  1. install ruby and compass in order to use compass gem install compass
  2. npm install -g yo bower karma generator-angular generator-karma
  3. mkdir angular-seed-yo
  4. cd angular-seed-yo
  5. yo angular

Testing

npm install karma
npm install grunt-karma
npm install karma-jasmine

ng-repeat $index, $first, $last

ng-show, ng-hide

ng-class (could used for even, odd a row)

ng-src, ng-href

$location ( change location path)

TRY OUT directive

Google extension: Batarang to debug angularjs yeoman

-> directive for loading icon

ERROR Message indicate: add a filter but not config it to controller

diff among .factory .value .service => the return value!


  • like Spreadsheets update
  • directives - tabs, more complex example
  • what is google live reloading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment