Angular: Difference between revisions
From charlesreid1
| Line 8: | Line 8: | ||
=Installing: Third Try= | =Installing: Third Try= | ||
==Install node with nvm== | |||
Use nvm | Use nvm | ||
| Line 24: | Line 26: | ||
node -v && npm -v | node -v && npm -v | ||
</pre> | </pre> | ||
==Install grunt and bower== | |||
Now install grunt and bower: | Now install grunt and bower: | ||
| Line 37: | Line 41: | ||
npm link grunt-cli | npm link grunt-cli | ||
npm link bower | npm link bower | ||
</pre> | |||
==Get Angular== | |||
<pre> | |||
$ git clone https://github.com/angular/angular.js | |||
</pre> | |||
==Build Angular== | |||
Now the last three commands: | |||
<pre> | |||
cd angular.js/ | |||
npm install | |||
bower install | |||
grunt package | |||
</pre> | </pre> | ||
Revision as of 03:36, 30 March 2015
Installing: First Try
See Angular/FirstTry page.
Installing: Trying Again
This documentation is worthless. Install attempt number two: Angular/SecondTry
Installing: Third Try
Install node with nvm
Use nvm
git clone https://github.com/creationix/nvm.git ~/.nvm echo "source ~/.nvm/nvm.sh" >> .bashrc nvm ls-remote nvm install -s v0.11.16 nvm alias default 0.11.16
test:
node -v && npm -v
Install grunt and bower
Now install grunt and bower:
npm install -g grunt-cli npm install -g bower
but this time, when you need to use them, use the link command [1]:
npm link grunt-cli npm link bower
Get Angular
$ git clone https://github.com/angular/angular.js
Build Angular
Now the last three commands:
cd angular.js/ npm install bower install grunt package
Using Angular with Python
Problem: most Python libraries are using Jinja or something similar, and those use double curly brackets {{ }}, conflicting with Angular.
Solution: use interpolateProvider variable to control start/end symbol https://docs.angularjs.org/api/ng/provider/$interpolateProvider