30. A Comparison of Angular, Backbone, CanJS and Ember
http://sporto.github.io/blog/2013/04/12/comparison-angular-backbone-can-ember/
Is Angular.js or Ember.js the better choice for Javascript frameworks?
http://www.quora.com/Client-side-MVC/Is-Angular-js-or-Ember-js-the-better-choice-for-Javascript-
frameworks?utm_source=javascriptweekly&utm_medium=email
13年10月7⽇日星期⼀一
37. Think in AngularJS!
How do I “think in AngularJS” if I have a jQuery background?
http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background/
15012542#15012542
我記得有⼀一個連結在 github or gist 上,關於這個主題,但我⼀一時之間找不到了
13年10月7⽇日星期⼀一
41. authentication
想破頭....
https://github.com/witoldsz/angular-http-auth
Typical use case:
• somewhere the: $http(...).then(function(response) { do-
something-with-response }) is invoked,
• the response of that requests is a HTTP 401,
• 'http-auth-interceptor' captures the initial request and broadcasts
'event:auth-loginRequired',
• your application intercepts this to e.g. show a login dialog (or whatever else),
• once your application figures out the authentication is OK, you are to call:
authService.loginConfirmed(),
• your initial failed request will now be retried and finally, the do-
something-with-response will fire.
13年10月7⽇日星期⼀一