摘要:
Annotation Order:It's considered good practice to dependency inject Angular's providers in before our own custom ones.Bad:// randomly ordered dependen... 阅读全文
摘要:
Module definitionsAngular modules can be declared in various ways, either stored in a variable or using the getter syntax. Use the getter syntax at al... 阅读全文
摘要:
Services:Services are instantiated and should be class-like also and reference thethiskeyword, keep function style consistent with everything else.Goo... 阅读全文
摘要:
ControllerAs:Use thecontrollerAssyntax always as it aids in nested scoping and controller instance reference.Bad: {{ someObject }}Good: {{ main.some... 阅读全文