码迷,mamicode.com
首页 > 移动开发 > 详细

[AngularJS] Sane, scalable Angular apps are tricky, but not impossible.

时间:2015-10-11 19:30:03      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:

Read from https://medium.com/@bluepnume/sane-scalable-angular-apps-are-tricky-but-not-impossible-lessons-learned-from-paypal-checkout-c5320558d4ef

 

  • ng-Controller is bad, use directive instead.
  • Don‘t specfiy controller in Route, use directive in template.
  • Alwasy use an isolated scope
  • Use factory only, forget about service and providor
  • $expectionHandler
  • use angular-ui-router
  • Aviod lazy loading ? ? ?

 

[AngularJS] Sane, scalable Angular apps are tricky, but not impossible.

标签:

原文地址:http://www.cnblogs.com/Answer1215/p/4869781.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!