Update to Angular 1.1.4

This commit is contained in:
Colin Frei 2013-04-07 11:37:21 +02:00
parent 72a485d6e8
commit f5fc1369ad
585 changed files with 48055 additions and 3041 deletions

View file

@ -1,7 +1,7 @@
<h1><code ng:non-bindable=""></code>
<span class="hint"></span>
</h1>
<div><p>In Angular, a controller is a JavaScript function(type/class) that is used to augment instances of
<div><a href="http://github.com/angular/angular.js/edit/master/docs/content/guide/dev_guide.mvc.understanding_controller.ngdoc" class="improve-docs btn btn-primary">Improve this doc</a><p>In Angular, a controller is a JavaScript function(type/class) that is used to augment instances of
angular <a href="guide/scope">Scope</a>, excluding the root scope. When you or Angular create a new
child scope object via the <a href="api/ng.$rootScope.Scope#$new"><code>scope.$new</code></a> API , there is an
option to pass in a controller as a method argument. This will tell Angular to associate the
@ -176,8 +176,9 @@ have a look at an example:</p>
&lt;body ng-controller="MainCtrl"&gt;
&lt;p&gt;Good {{timeOfDay}}, {{name}}!&lt;/p&gt;
&lt;div ng-controller="ChildCtrl"&gt;
&lt;p&gt;Good {{timeOfDay}}, {{name}}!&lt;/p&gt;
&lt;p ng-controller="BabyCtrl"&gt;Good {{timeOfDay}}, {{name}}!&lt;/p&gt;
&lt;p&gt;Good {{timeOfDay}}, {{name}}!&lt;/p&gt;
&lt;p ng-controller="BabyCtrl"&gt;Good {{timeOfDay}}, {{name}}!&lt;/p&gt;
&lt;/div&gt;
&lt;/body&gt;
function MainCtrl($scope) {