Angular
From charlesreid1
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
Change dir and link to node modules:
cd angular.js/
First, link grunt
npm link grunt-cli
which returns:
$ npm link grunt-cli unbuild grunt-cli@0.1.13 npm WARN prefer global grunt-cli@0.1.13 should be installed with -g /home/charles/codes/angular.js/node_modules/grunt-cli -> /home/charles/.nvm/v0.11.16/lib/node_modules/grunt-cli
I DID install grunt-cli with -g. Don't know what this thing is talking about.
Next, bower:
npm link bower
and the same damn error:
$ npm link bower npm WARN prefer global bower@1.3.12 should be installed with -g /home/charles/codes/angular.js/node_modules/bower -> /home/charles/.nvm/v0.11.16/lib/node_modules/bower
Now the last three commands:
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