From 984da5b25ab63d8a18d98e753795f52c3f70c0ab Mon Sep 17 00:00:00 2001 From: Wesley Cho Date: Thu, 11 Feb 2016 09:59:54 -0800 Subject: [PATCH] docs(compile): change to use controllerAs --- src/ng/compile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index 3db3fc9f7985..75387ff2e1cb 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -1059,7 +1059,8 @@ function $CompileProvider($provide, $$sanitizeUriProvider) { * * myMod.component('myComp', { * templateUrl: 'views/my-comp.html', - * controller: 'MyCtrl as ctrl', + * controller: 'MyCtrl', + * controllerAs: 'ctrl', * bindings: {name: '@'} * }); *