diff --git a/docs/content/guide/controller.ngdoc b/docs/content/guide/controller.ngdoc index abb0fa28..9a699436 100644 --- a/docs/content/guide/controller.ngdoc +++ b/docs/content/guide/controller.ngdoc @@ -37,12 +37,8 @@ The properties contain the **view model** (the model that will be presented by t `$scope` properties will be available to the template at the point in the DOM where the Controller is registered. -The following example demonstrates setting up -`GreetingController`, -which attaches a `greeting` property containing the string `'Hola!'` to the `$scope`: - -We attach the controller as a module on the application using the `.controller` method of your -{@link module Angular Module}. This keeps it out of the global scope. +The following example demonstrates creating a `GreetingController`, which attaches a `greeting` +property containing the string `'Hola!'` to the `$scope`: ```js var myApp = angular.module('myApp',[]); @@ -52,9 +48,18 @@ myApp.controller('GreetingController', ['$scope', function($scope) { }]); ``` +We create an {@link module Angular Module}, `myApp`, for our application. Then we add the controller's +constructor function to the module using the `.controller()` method. This keeps the controller's +constructor function out of the global scope. -Once the Controller has been attached to the DOM, the `greeting` property can be data-bound to the -template: +