Skip to content
Snippets Groups Projects
Commit ee535777 authored by Kapunahele Wong's avatar Kapunahele Wong Committed by Victor Berchet
Browse files

docs: add ngStyle to cheat sheet (#22070)

PR Close #22070
parent 94756eb4
No related merge requests found
......@@ -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">
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment