Skip to content

Commit 0014a5d

Browse files
authored
Update README.md
1 parent 7d89418 commit 0014a5d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ Controllers should only be used alongside components, never anywhere else. If yo
282282

283283
Here are some advisories for using `Class` for controllers:
284284

285+
* Drop the name "Controller", i.e. use `controller: class TodoComponent {...}` to aid future Angular 2 migration
285286
* Always use the `constructor` for dependency injection purposes
286287
* Use [ng-annotate](https://github.com/olov/ng-annotate)'s `'ngInject';` syntax for `$inject` annotations
287288
* If you need to access the lexical scope, use arrow functions

0 commit comments

Comments
 (0)