docs: add ngStyle to cheat sheet (#22070)

PR Close #22070
This commit is contained in:
Kapunahele Wong 2018-01-17 13:44:05 -05:00 committed by Victor Berchet
parent 3b692a55a7
commit 1c1cbba04b
1 changed files with 5 additions and 0 deletions

View File

@ -140,6 +140,11 @@ is available to <code>declarations</code> of this module.</p>
<td><p>Binds the presence of CSS classes on the element to the truthiness of the associated map values. The right-hand expression should return {class-name: true/false} map.</p>
</td>
</tr>
<tr>
<td><code>&lt;div <b>[ngStyle]</b>="{'property': 'value'}"&gt;</code><br><code>&lt;div <b>[ngStyle]</b>="dynamicStyles()"&gt;</code></td>
<td><p>Allows you to assign styles to an HTML element using CSS. You can use CSS directly, as in the first example, or you can call a method from the component.</p>
</td>
</tr>
</tbody></table>
<table class="is-full-width is-fixed-layout">