Update to Angular 1.1.4
This commit is contained in:
parent
72a485d6e8
commit
f5fc1369ad
585 changed files with 48055 additions and 3041 deletions
20
lib/angular/docs/partials/api/ng.directive:ngClass.html
Normal file → Executable file
20
lib/angular/docs/partials/api/ng.directive:ngClass.html
Normal file → Executable file
|
@ -2,13 +2,13 @@
|
|||
<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>ngClass</code> allows you to set CSS class on HTML element dynamically by databinding an
|
||||
expression that represents all classes to be added.</p>
|
||||
|
||||
<p>The directive won't add duplicate classes if a particular class was already set.</p>
|
||||
|
||||
<p>When the expression changes, the previously added classes are removed and only then the classes
|
||||
<p>When the expression changes, the previously added classes are removed and only then the
|
||||
new classes are added.</p></div>
|
||||
<h2 id="Usage">Usage</h2>
|
||||
<div class="usage">as attribute<pre class="prettyprint linenums"><ANY ng-class="{expression}">
|
||||
|
@ -26,10 +26,10 @@ names, an array, or a map of class names to boolean values.</p></li>
|
|||
</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-140" source-edit-css="style.css-141" source-edit-js="" source-edit-unit="" source-edit-scenario="scenario.js-142"></div>
|
||||
<div source-edit="" source-edit-deps="angular.js" source-edit-html="index.html-109" source-edit-css="style.css-110" source-edit-js="" source-edit-unit="" source-edit-scenario="scenario.js-111"></div>
|
||||
<div class="tabbable"><div class="tab-pane" title="index.html">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-140" ng-html-wrap=" angular.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-140">
|
||||
<pre class="prettyprint linenums" ng-set-text="index.html-109" ng-html-wrap=" angular.js"></pre>
|
||||
<script type="text/ng-template" id="index.html-109">
|
||||
<input type="button" value="set" ng-click="myVar='my-class'">
|
||||
<input type="button" value="clear" ng-click="myVar=''">
|
||||
<br>
|
||||
|
@ -37,16 +37,16 @@ names, an array, or a map of class names to boolean values.</p></li>
|
|||
</script>
|
||||
</div>
|
||||
<div class="tab-pane" title="style.css">
|
||||
<pre class="prettyprint linenums" ng-set-text="style.css-141"></pre>
|
||||
<style type="text/css" id="style.css-141">
|
||||
<pre class="prettyprint linenums" ng-set-text="style.css-110"></pre>
|
||||
<style type="text/css" id="style.css-110">
|
||||
.my-class {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
<div class="tab-pane" title="End to end test">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-142"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-142">
|
||||
<pre class="prettyprint linenums" ng-set-text="scenario.js-111"></pre>
|
||||
<script type="text/ng-template" id="scenario.js-111">
|
||||
it('should check ng-class', function() {
|
||||
expect(element('.doc-example-live span').prop('className')).not().
|
||||
toMatch(/my-class/);
|
||||
|
@ -64,5 +64,5 @@ names, an array, or a map of class names to boolean values.</p></li>
|
|||
</script>
|
||||
</div>
|
||||
</div><h4>Demo</h4>
|
||||
<div class="well doc-example-live" ng-embed-app="" ng-set-html="index.html-140" ng-eval-javascript=""></div></div>
|
||||
<div class="well doc-example-live animator-container" ng-embed-app="" ng-set-html="index.html-109" ng-eval-javascript=""></div></div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue