参考资料:
[AngularJS系列(4)] 那伤不起的provider们啊~ (Provider, Value, Constant, Service, Factory, Decorator):http://hellobug.github.io/blog/angularjs-providers/
Single Page Apps with AngularJS Routing and Templating:https://scotch.io/tutorials/single-page-apps-with-angularjs-routing-and-templating
How to Implement Safe Sign-In via OAuth:http://devcenter.kinvey.com/angular/tutorials/how-to-implement-safe-signin-via-oauth
A Better Way to Learn AngularJS:https://thinkster.io/a-better-way-to-learn-angularjs
$http Interceptors:https://thinkster.io/a-better-way-to-learn-angularjs/interceptors
Simple AngularJS Authentication with JWT:https://thinkster.io/angularjs-jwt-auth#authenticating-with-an-interceptor
Implementing Authentication in Angular Applications:https://www.sitepoint.com/implementing-authentication-angular-applications/
Angularjs中的拦截器 (卧槽,好牛逼):http://www.cnblogs.com/littlemonk/p/5512253.html
Interceptors in AngularJS and Useful Examples:http://www.webdeveasy.com/interceptors-in-angularjs-and-useful-examples/
angularJS 1.5.7官方文档:https://code.angularjs.org/1.5.7/docs/api