aboutsummaryrefslogtreecommitdiffstats
path: root/src/directive/ngStyle.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-09 00:00:05 -0800
committerIgor Minar2012-03-09 16:14:26 -0800
commitf4d338d393dabb49182d40b4fe90c4d1b51621c0 (patch)
tree6c20fbef9865869e9db44f27c53aec11f1e30d5e /src/directive/ngStyle.js
parent0bfaa579c04d1b7cd21fbe16bfbc47a684f223b3 (diff)
downloadangular.js-f4d338d393dabb49182d40b4fe90c4d1b51621c0.tar.bz2
chore(*): refactor all ng: to ng-
Diffstat (limited to 'src/directive/ngStyle.js')
-rw-r--r--src/directive/ngStyle.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/directive/ngStyle.js b/src/directive/ngStyle.js
index cd2c1e3c..1dc1ee76 100644
--- a/src/directive/ngStyle.js
+++ b/src/directive/ngStyle.js
@@ -2,10 +2,10 @@
/**
* @ngdoc directive
- * @name angular.module.ng.$compileProvider.directive.ng:style
+ * @name angular.module.ng.$compileProvider.directive.ng-style
*
* @description
- * The ng:style allows you to set CSS style on an HTML element conditionally.
+ * The ng-style allows you to set CSS style on an HTML element conditionally.
*
* @element ANY
* @param {expression} expression {@link guide/dev_guide.expressions Expression} which evals to an
@@ -15,14 +15,14 @@
* @example
<doc:example>
<doc:source>
- <input type="button" value="set" ng:click="myStyle={color:'red'}">
- <input type="button" value="clear" ng:click="myStyle={}">
+ <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>
+ <span ng-style="myStyle">Sample Text</span>
<pre>myStyle={{myStyle}}</pre>
</doc:source>
<doc:scenario>
- it('should check ng:style', function() {
+ 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();
expect(element('.doc-example-live span').css('color')).toBe('rgb(255, 0, 0)');