From 5fedfd79a5720a7b275162ef1e265671026943bc Mon Sep 17 00:00:00 2001 From: Vineet Kumar Date: Sat, 20 Jul 2013 20:30:25 -0400 Subject: 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. --- src/ng/directive/ngController.js | 8 +++----- 1 file 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.