docs(aio): Update NgStyle
and NgClass
to use quoted keys
This commit is contained in:

committed by
Jason Aden

parent
9c1f6fd06f
commit
0ede642cb9
@ -213,10 +213,10 @@
|
||||
<h2 id="myUnless">UnlessDirective</h2>
|
||||
<p>
|
||||
The condition is currently
|
||||
<span [ngClass]="{ a: !condition, b: condition, unless: true }">{{condition}}</span>.
|
||||
<span [ngClass]="{ 'a': !condition, 'b': condition, 'unless': true }">{{condition}}</span>.
|
||||
<button
|
||||
(click)="condition = !condition"
|
||||
[ngClass] = "{ a: condition, b: !condition }" >
|
||||
[ngClass] = "{ 'a': condition, 'b': !condition }" >
|
||||
Toggle condition to {{condition ? 'false' : 'true'}}
|
||||
</button>
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user