diff options
| author | Misko Hevery | 2011-10-07 11:27:49 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:46 -0700 | 
| commit | fd822bdaf9d04e522aaa5400b673f333190abe98 (patch) | |
| tree | 451cd26d3f7da862692d6c56e6e8f235824c180a /docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc | |
| parent | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (diff) | |
| download | angular.js-fd822bdaf9d04e522aaa5400b673f333190abe98.tar.bz2 | |
chore(formating): clean code to be function() {
Diffstat (limited to 'docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc')
| -rw-r--r-- | docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc index 7a6653e9..f5522246 100644 --- a/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc +++ b/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc @@ -3,7 +3,7 @@  @name Developer Guide: About MVC in Angular: Understanding the Controller Component  @description -In angular, a controller is a JavaScript function (type/class) that is used to augment instances of +In angular, a controller is a JavaScript function(type/class) that is used to augment instances of  angular {@link dev_guide.scopes Scope}, excluding the root scope. When you or angular create a new  child scope object via the {@link api/angular.scope.$new scope.$new} API        , there is an  option to pass in a controller as a method argument. This will tell angular to associate the @@ -128,7 +128,7 @@ starts with capital letter and ends with "Ctrl" or "Controller".  controller augments.  - Assigning a property to `this` creates or updates the model.  - Controller methods can be created through direct assignment to scope (the `chiliSpicy` method) or -as prototype methods of the controller constructor function (the `jalapenoSpicy` method) +as prototype methods of the controller constructor function(the `jalapenoSpicy` method)  - Both controller methods are available in the template (for the `body` element and and its  children). @@ -227,7 +227,7 @@ Controller Test:  <pre>  describe('myController function', function() { -  describe('myController', function(){ +  describe('myController', function() {      var ctrl;      beforeEach(function() { | 
