diff options
| author | Misko Hevery | 2012-04-28 22:45:28 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2012-05-04 16:12:17 -0700 | 
| commit | 8e2675029f5ca404a7c649cc161df3ea642d941f (patch) | |
| tree | 6668342fb2c57360e06c9e36bfd4e5e6e08a52f5 /src/ng/directive/ngStyle.js | |
| parent | d0159454dfa2e1cee4dd4ab7a41c2fcf9e121a64 (diff) | |
| download | angular.js-8e2675029f5ca404a7c649cc161df3ea642d941f.tar.bz2 | |
chore(docs): re-skin main documentation
Diffstat (limited to 'src/ng/directive/ngStyle.js')
| -rw-r--r-- | src/ng/directive/ngStyle.js | 17 | 
1 files changed, 11 insertions, 6 deletions
| diff --git a/src/ng/directive/ngStyle.js b/src/ng/directive/ngStyle.js index c24c1b6d..30a266cd 100644 --- a/src/ng/directive/ngStyle.js +++ b/src/ng/directive/ngStyle.js @@ -13,15 +13,20 @@   *      keys.   *   * @example -   <doc:example> -     <doc:source> +   <example> +     <file name="index.html">          <input type="button" value="set" ng-click="myStyle={color:'red'}">          <input type="button" value="clear" ng-click="myStyle={}">          <br/>          <span ng-style="myStyle">Sample Text</span>          <pre>myStyle={{myStyle}}</pre> -     </doc:source> -     <doc:scenario> +     </file> +     <file name="style.css"> +       span { +         color: black; +       } +     </file> +     <file name="scenario.js">         it('should check ng-style', function() {           expect(element('.doc-example-live span').css('color')).toBe('rgb(0, 0, 0)');           element('.doc-example-live :button[value=set]').click(); @@ -29,8 +34,8 @@           element('.doc-example-live :button[value=clear]').click();           expect(element('.doc-example-live span').css('color')).toBe('rgb(0, 0, 0)');         }); -     </doc:scenario> -   </doc:example> +     </file> +   </example>   */  var ngStyleDirective = ngDirective(function(scope, element, attr) {    scope.$watch(attr.ngStyle, function(newStyles, oldStyles) { | 
