Angular Related

Env Setup

https://www.npmjs.com/package/http-server

if you’re running node.js http-server is super easy. Install: npm install -g http-server.
After installation cd into your project folder and run http-server -o. -o is to open browser to the page.
Sample cmd,
pathtonode/node pathtohttpserver/http-server [pathtoangularproject] -p port -a address

Compare Strings

https://docs.angularjs.org/api/ng/function/angular.equals

Directory structure best practice

Refer to the offical recommendation
https://github.com/angular/angular-seed/tree/master/app

To debug Angular using Chrome

use AngularJS Batarang.

WARNING: Tried to load angular more than once.

http://stackoverflow.com/questions/22595878/tried-to-load-angular-more-than-once
TODO: update the page routing

$scope not $Scope

Exception, Unknown provider: $ScopeProvider <- $Scope

Angular invoke Restful service that return purely string array

https://mariuszprzydatek.com/2013/12/13/tricky-behavior-of-angularjs-resource-service/

PROD

http://brandonbohling.com/technology/ng-nginx-pm2/
https://www.digitalocean.com/community/tutorials/how-to-use-pm2-to-setup-a-node-js-production-environment-on-an-ubuntu-vps

Reward Makes Perfect
0%