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:ngClassOdd.html
Normal file → Executable file
18
lib/angular/docs/partials/api/ng.directive:ngClassOdd.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/ngClass.js" class="improve-docs btn btn-primary">Improve this doc</a><h2 id="Description">Description</h2>
|
||||
<div class="description"><p>The <code>ngClassOdd</code> and <code>ngClassEven</code> directives work exactly as
|
||||
<a href="api/ng.directive:ngClass"><code>ngClass</code></a>, except it works in
|
||||
conjunction with <code>ngRepeat</code> and takes affect only on odd (even) rows.</p>
|
||||
|
@ -24,10 +24,10 @@ of the evaluation can be a string representing space delimited class names or an
|
|||
</div>
|
||||
<h2 id="Example">Example</h2>
|
||||
<div class="example"><h4>Source</h4>
|
||||
<div source-edit="" source-edit-deps="angular.js" source-edit-html="index.html-143" source-edit-css="style.css-144" source-edit-js="" source-edit-unit="" source-edit-scenario="scenario.js-145"></div>
|
||||
<div source-edit="" source-edit-deps="angular.js" source-edit-html="index.html-112" source-edit-css="style.css-113" source-edit-js="" source-edit-unit="" source-edit-scenario="scenario.js-114"></div>
|
||||
<div class="tabbable"><div class="tab-pane" title="index.html">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-143" ng-html-wrap=" angular.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-143">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-112" ng-html-wrap=" angular.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-112">
|
||||
<ol ng-init="names=['John', 'Mary', 'Cate', 'Suz']">
|
||||
<li ng-repeat="name in names">
|
||||
<span ng-class-odd="'odd'" ng-class-even="'even'">
|
||||
|
@ -38,8 +38,8 @@ of the evaluation can be a string representing space delimited class names or an
|
|||
</script>
|
||||
</div>
|
||||
<div class="tab-pane" title="style.css">
|
||||
<pre class="prettyprint linenums" ng-set-text="style.css-144"></pre>
|
||||
<style type="text/css" id="style.css-144">
|
||||
<pre class="prettyprint linenums" ng-set-text="style.css-113"></pre>
|
||||
<style type="text/css" id="style.css-113">
|
||||
.odd {
|
||||
color: red;
|
||||
}
|
||||
|
@ -49,8 +49,8 @@ of the evaluation can be a string representing space delimited class names or an
|
|||
</style>
|
||||
</div>
|
||||
<div class="tab-pane" title="End to end test">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-145"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-145">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-114"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-114">
|
||||
it('should check ng-class-odd and ng-class-even', function() {
|
||||
expect(element('.doc-example-live li:first span').prop('className')).
|
||||
toMatch(/odd/);
|
||||
|
@ -60,5 +60,5 @@ of the evaluation can be a string representing space delimited class names or an
|
|||
</script>
|
||||
</div>
|
||||
</div><h4>Demo</h4>
|
||||
<div class="well doc-example-live" ng-embed-app="" ng-set-html="index.html-143" ng-eval-javascript=""></div></div>
|
||||
<div class="well doc-example-live animator-container" ng-embed-app="" ng-set-html="index.html-112" ng-eval-javascript=""></div></div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue