aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVineet Kumar2013-07-20 20:30:25 -0400
committerPawel Kozlowski2013-07-21 20:30:40 +0200
commit5fedfd79a5720a7b275162ef1e265671026943bc (patch)
treea451ddd8567fb30360c0ca65be7e85cbfdaf47c1
parentbdde40e755cb1f53ce847de5c5a758f276a133d3 (diff)
downloadangular.js-5fedfd79a5720a7b275162ef1e265671026943bc.tar.bz2
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.
-rw-r--r--src/ng/directive/ngController.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ng/directive/ngController.js b/src/ng/directive/ngController.js
index 438a0d87..122be7c1 100644
--- a/src/ng/directive/ngController.js
+++ b/src/ng/directive/ngController.js
@@ -25,11 +25,9 @@
*
* @example
* Here is a simple form for editing user contact information. Adding, removing, clearing, and
- * greeting are methods declared on the controller (see source tab). These methods can
- * easily be called from the angular markup. Notice that the scope becomes the `this` for the
- * controller's instance. This allows for easy access to the view data from the controller. Also
- * notice that any changes to the data are automatically reflected in the View without the need
- * for a manual update.
+ * greeting are methods declared on the $scope by the controller (see source tab). These methods can
+ * easily be called from the angular markup. Notice that any changes to the data are automatically
+ * reflected in the View without the need for a manual update.
<doc:example>
<doc:source>
<script>