From charlesreid1

Line 50: Line 50:


==Build Angular==
==Build Angular==
Change dir and link to node modules:
<pre>
cd angular.js/
npm link grunt-cli
npm link bower
</pre>


Now the last three commands:
Now the last three commands:


<pre>
<pre>
cd angular.js/
npm install
npm install
bower install
bower install

Revision as of 03:37, 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

Change dir and link to node modules:

cd angular.js/
npm link grunt-cli
npm link 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