Skip to content

Commit fae94c8

Browse files
petebacondarwinnetman92
authored andcommitted
docs(guide/controller): add a line about controller as
1 parent 56de516 commit fae94c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/content/guide/controller.ngdoc

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ In Angular, a Controller is defined by a JavaScript **constructor function** tha
1010

1111
When a Controller is attached to the DOM via the {@link ng.directive:ngController ng-controller}
1212
directive, Angular will instantiate a new Controller object, using the specified Controller's
13-
**constructor function**. A new **child scope** will be available as an injectable parameter to the
14-
Controller's constructor function as `$scope`.
13+
**constructor function**. A new **child scope** will created made available as an injectable parameter
14+
to the Controller's constructor function as `$scope`.
15+
16+
If the controller has been attached using the `controller as` syntax then the controller instance will
17+
be assigned to a property on the new scope.
1518

1619
Use controllers to:
1720

0 commit comments

Comments
 (0)