Upgrading to Angular 1.3+ Style
The first step of any migration is to upgrade the codebases style to conform to Angular 1.3+ style, ideally an Angular 1.5+ style. This means:
- All controllers should be in
controllerAsform, and ideally should only exist on directives Use directives, specifically "component directives", that use the following properties:
restrict: 'E'scope: {}bindToController: {}controllerAstemplateortemplateUrltransclude(optional)require(optional)
Component directives should not use the following attributes:
compilereplace: truepriority/terminal
- Ideally have one component, or one thing per file
- Ideally have folders organized by feature