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

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 ? ? ?

 

posted @ 2015-10-11 18:58  Zhentiw  阅读(391)  评论(0编辑  收藏  举报