From fd822bdaf9d04e522aaa5400b673f333190abe98 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Fri, 7 Oct 2011 11:27:49 -0700 Subject: chore(formating): clean code to be function() { --- docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc') 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:
describe('myController function', function() {
- describe('myController', function(){
+ describe('myController', function() {
var ctrl;
beforeEach(function() {
--
cgit v1.2.3