@@ -98,18 +98,18 @@ function classDirective(name, selector) {
98
98
* @example Example that demonstrates basic bindings via ngClass directive.
99
99
<example>
100
100
<file name="index.html">
101
- <p ng-class="{strike: strike , bold: bold , red: red }">Map Syntax Example</p>
102
- <input type="checkbox" ng-model="bold "> bold
103
- <input type="checkbox" ng-model="strike "> strike
104
- <input type="checkbox" ng-model="red "> red
101
+ <p ng-class="{strike: deleted , bold: important , red: error }">Map Syntax Example</p>
102
+ <input type="checkbox" ng-model="deleted "> deleted (apply "strike" class)<br>
103
+ <input type="checkbox" ng-model="important "> important (apply "bold" class)<br>
104
+ <input type="checkbox" ng-model="error "> error (apply " red" class)
105
105
<hr>
106
106
<p ng-class="style">Using String Syntax</p>
107
107
<input type="text" ng-model="style" placeholder="Type: bold strike red">
108
108
<hr>
109
109
<p ng-class="[style1, style2, style3]">Using Array Syntax</p>
110
- <input ng-model="style1" placeholder="Type: bold"><br>
111
- <input ng-model="style2" placeholder="Type: strike"><br>
112
- <input ng-model="style3" placeholder="Type: red"><br>
110
+ <input ng-model="style1" placeholder="Type: bold, strike or red "><br>
111
+ <input ng-model="style2" placeholder="Type: bold, strike or red "><br>
112
+ <input ng-model="style3" placeholder="Type: bold, strike or red"><br>
113
113
</file>
114
114
<file name="style.css">
115
115
.strike {
0 commit comments