Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b8b5b88

Browse files
wesleychoNarretz
authored andcommitted
docs($compile): change component example to use controllerAs
Closes #14010
1 parent e4e3096 commit b8b5b88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng/compile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,8 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
10621062
*
10631063
* myMod.component('myComp', {
10641064
* templateUrl: 'views/my-comp.html',
1065-
* controller: 'MyCtrl as ctrl',
1065+
* controller: 'MyCtrl',
1066+
* controllerAs: 'ctrl',
10661067
* bindings: {name: '@'}
10671068
* });
10681069
*

0 commit comments

Comments
 (0)