Skip to content

Instantly share code, notes, and snippets.

@armstrongnate
Created April 18, 2013 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armstrongnate/5416800 to your computer and use it in GitHub Desktop.
Save armstrongnate/5416800 to your computer and use it in GitHub Desktop.
Notes about Angular.js
Raw angular app:
Make sure karma is installed
>> npm install -g karma
Clone bare angular app from angular tutorial
>> git clone git://github.com/angular/angular-phonecat.git
>> git checkout -f step-0
Run the server:
>> ./scripts/web-server.js
$scope. is equivalent to '@' in rails in that it is the glue between views and controllers. Difference is you don't need '$scope.' in front of variables in views.
Tests
Run tests:
>> ./scripts/test.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment