摘要: Annotation Order:It's considered good practice to dependency inject Angular's providers in before our own custom ones.Bad:// randomly ordered dependen... 阅读全文
posted @ 2014-11-25 17:11 Zhentiw 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2014-11-25 17:03 Zhentiw 阅读(302) 评论(0) 推荐(0) 编辑
摘要: Services:Services are instantiated and should be class-like also and reference thethiskeyword, keep function style consistent with everything else.Goo... 阅读全文
posted @ 2014-11-25 16:50 Zhentiw 阅读(151) 评论(0) 推荐(0) 编辑
摘要: ControllerAs:Use thecontrollerAssyntax always as it aids in nested scoping and controller instance reference.Bad: {{ someObject }}Good: {{ main.some... 阅读全文
posted @ 2014-11-25 16:40 Zhentiw 阅读(338) 评论(0) 推荐(0) 编辑