Closed timkindberg closed 9 years ago
feat(controllerAs): Set default controllerAs value to 'ctrl'.
For easier migration to Angular 2 later via simple find/replace. To keep the older behavior set controllerAs to '$auto'.
BREAKING CHANGE:
Before:
@Component({ selector: 'app', template: '{{app.foo}}' })
After:
@Component({ selector: 'app', template: '{{ctrl.foo}}' }) // or @Component({ selector: 'app', controllerAs: '$auto', template: '{{app.foo}}' })
close #6
@MikeRyan52 ready for review. Again thanks for going along with this I know you weren't quite feeling it. I do appreciate it and I feel like its the right thing to do.
feat(controllerAs): Set default controllerAs value to 'ctrl'.
For easier migration to Angular 2 later via simple find/replace. To keep the older behavior set controllerAs to '$auto'.
BREAKING CHANGE:
Before:
After:
close #6