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

@ -2,7 +2,7 @@
<span class="hint">(type in module <code ng:non-bindable="">ng</code>
)</span>
</h1>
<div><h2 id="Description">Description</h2>
<div><a href="http://github.com/angular/angular.js/edit/master/src/ng/directive/input.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2>
<div class="description"><p><code>NgModelController</code> provides API for the <code>ng-model</code> directive. The controller contains
services for data-binding, validation, CSS update, value formatting and parsing. It
specifically does not contain any logic which deals with DOM rendering or listening to
@ -14,10 +14,10 @@ data-binding. Notice how different directives (<code>contenteditable</code>, <co
collaborate together to achieve the desired result.</p>
<h4>Source</h4>
<div source-edit="customControl" source-edit-deps="angular.js script.js" source-edit-html="index.html-132" source-edit-css="style.css-130" source-edit-js="script.js-131" source-edit-unit="" source-edit-scenario="scenario.js-133"></div>
<div source-edit="customControl" source-edit-deps="angular.js script.js" source-edit-html="index.html-141" source-edit-css="style.css-139" source-edit-js="script.js-140" source-edit-unit="" source-edit-scenario="scenario.js-142"></div>
<div class="tabbable"><div class="tab-pane" title="index.html">
<pre class="prettyprint linenums" ng-set-text="index.html-132" ng-html-wrap="customControl angular.js script.js"></pre>
<script type="text/ng-template" id="index.html-132">
<pre class="prettyprint linenums" ng-set-text="index.html-141" ng-html-wrap="customControl angular.js script.js"></pre>
<script type="text/ng-template" id="index.html-141">
<form name="myForm">
<div contenteditable
name="myWidget" ng-model="userContent"
@ -29,8 +29,8 @@ collaborate together to achieve the desired result.</p>
</script>
</div>
<div class="tab-pane" title="style.css">
<pre class="prettyprint linenums" ng-set-text="style.css-130"></pre>
<style type="text/css" id="style.css-130">
<pre class="prettyprint linenums" ng-set-text="style.css-139"></pre>
<style type="text/css" id="style.css-139">
[contenteditable] {
border: 1px solid black;
background-color: white;
@ -44,8 +44,8 @@ collaborate together to achieve the desired result.</p>
</style>
</div>
<div class="tab-pane" title="script.js">
<pre class="prettyprint linenums" ng-set-text="script.js-131"></pre>
<script type="text/ng-template" id="script.js-131">
<pre class="prettyprint linenums" ng-set-text="script.js-140"></pre>
<script type="text/ng-template" id="script.js-140">
angular.module('customControl', []).
directive('contenteditable', function() {
return {
@ -75,8 +75,8 @@ collaborate together to achieve the desired result.</p>
</script>
</div>
<div class="tab-pane" title="End to end test">
<pre class="prettyprint linenums" ng-set-text="scenario.js-133"></pre>
<script type="text/ng-template" id="scenario.js-133">
<pre class="prettyprint linenums" ng-set-text="scenario.js-142"></pre>
<script type="text/ng-template" id="scenario.js-142">
it('should data-bind and become invalid', function() {
var contentEditable = element('[contenteditable]');
@ -88,7 +88,7 @@ collaborate together to achieve the desired result.</p>
</script>
</div>
</div><h4>Demo</h4>
<div class="well doc-example-live" ng-embed-app="customControl" ng-set-html="index.html-132" ng-eval-javascript="script.js-131"></div></div>
<div class="well doc-example-live animator-container" ng-embed-app="customControl" ng-set-html="index.html-141" ng-eval-javascript="script.js-140"></div></div>
<div class="member method"><h2 id="Methods">Methods</h2>
<ul class="methods"><li><h3 id="$render">$render()</h3>
<div class="$render"><p>Called when the view needs to be updated. It is expected that the user of the ng-model
@ -148,7 +148,7 @@ all of these functions to sanitize / convert the value as well as validate.</p><
these functions to convert the value as well as validate.</p></div>
</li>
<li><h3 id="$error">$error</h3>
<div class="$error"><p>An bject hash with all errors as keys.</p></div>
<div class="$error"><p>An object hash with all errors as keys.</p></div>
</li>
<li><h3 id="$pristine">$pristine</h3>
<div class="$pristine"><p>True if user has not interacted with the control yet.</p></div>