[angularjs] use module instead of global variable.
Merge pull request #868 from stephenplusplus/gh-pages

[angularjs] use module instead of global variable.