Update to Angular 1.1.4
This commit is contained in:
parent
72a485d6e8
commit
f5fc1369ad
585 changed files with 48055 additions and 3041 deletions
18
lib/angular/docs/partials/api/ng.directive:ngList.html
Normal file → Executable file
18
lib/angular/docs/partials/api/ng.directive:ngList.html
Normal file → Executable file
|
@ -2,7 +2,7 @@
|
|||
<span class="hint">(directive 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>Text input that converts between comma-separated string into an array of strings.</p></div>
|
||||
<h2 id="Usage">Usage</h2>
|
||||
<div class="usage">as attribute<pre class="prettyprint linenums"><input ng-list="{string}">
|
||||
|
@ -19,10 +19,10 @@ specified in form <code>/something/</code> then the value will be converted into
|
|||
</div>
|
||||
<h2 id="Example">Example</h2>
|
||||
<div class="example"><h4>Source</h4>
|
||||
<div source-edit="" source-edit-deps="angular.js script.js" source-edit-html="index.html-138" source-edit-css="" source-edit-js="script.js-137" source-edit-unit="" source-edit-scenario="scenario.js-139"></div>
|
||||
<div source-edit="" source-edit-deps="angular.js script.js" source-edit-html="index.html-147" source-edit-css="" source-edit-js="script.js-146" source-edit-unit="" source-edit-scenario="scenario.js-148"></div>
|
||||
<div class="tabbable"><div class="tab-pane" title="index.html">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-138" ng-html-wrap=" angular.js script.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-138">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-147" ng-html-wrap=" angular.js script.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-147">
|
||||
|
||||
<form name="myForm" ng-controller="Ctrl">
|
||||
List: <input name="namesInput" ng-model="names" ng-list required>
|
||||
|
@ -37,16 +37,16 @@ specified in form <code>/something/</code> then the value will be converted into
|
|||
</script>
|
||||
</div>
|
||||
<div class="tab-pane" title="script.js">
|
||||
<pre class="prettyprint linenums" ng-set-text="script.js-137"></pre>
|
||||
<script type="text/ng-template" id="script.js-137">
|
||||
<pre class="prettyprint linenums" ng-set-text="script.js-146"></pre>
|
||||
<script type="text/ng-template" id="script.js-146">
|
||||
function Ctrl($scope) {
|
||||
$scope.names = ['igor', 'misko', 'vojta'];
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<div class="tab-pane" title="End to end test">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-139"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-139">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-148"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-148">
|
||||
it('should initialize to model', function() {
|
||||
expect(binding('names')).toEqual('["igor","misko","vojta"]');
|
||||
expect(binding('myForm.namesInput.$valid')).toEqual('true');
|
||||
|
@ -60,5 +60,5 @@ specified in form <code>/something/</code> then the value will be converted into
|
|||
</script>
|
||||
</div>
|
||||
</div><h4>Demo</h4>
|
||||
<div class="well doc-example-live" ng-embed-app="" ng-set-html="index.html-138" ng-eval-javascript="script.js-137"></div></div>
|
||||
<div class="well doc-example-live animator-container" ng-embed-app="" ng-set-html="index.html-147" ng-eval-javascript="script.js-146"></div></div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue