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

Commit 5fedfd7

Browse files
vinpkozlowski-opensource
authored andcommitted
docs(ngController): remove obsolete mention of scope as this in controller
Controllers are now (since angular 1.0) instantiated as regular constructorsand the scope is injectable as $scope rather than being referenced as `this` in controller methods.
1 parent bdde40e commit 5fedfd7

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ng/directive/ngController.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
*
2626
* @example
2727
* Here is a simple form for editing user contact information. Adding, removing, clearing, and
28-
* greeting are methods declared on the controller (see source tab). These methods can
29-
* easily be called from the angular markup. Notice that the scope becomes the `this` for the
30-
* controller's instance. This allows for easy access to the view data from the controller. Also
31-
* notice that any changes to the data are automatically reflected in the View without the need
32-
* for a manual update.
28+
* greeting are methods declared on the $scope by the controller (see source tab). These methods can
29+
* easily be called from the angular markup. Notice that any changes to the data are automatically
30+
* reflected in the View without the need for a manual update.
3331
<doc:example>
3432
<doc:source>
3533
<script>

0 commit comments

Comments
 (0)