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

 

Related Posts

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注