diff --git a/aio/content/guide/cheatsheet.md b/aio/content/guide/cheatsheet.md index cf758b4f20..7bdce13171 100644 --- a/aio/content/guide/cheatsheet.md +++ b/aio/content/guide/cheatsheet.md @@ -140,6 +140,11 @@ is available to declarations of this module.

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.

+ +<div [ngStyle]="{'property': 'value'}">
<div [ngStyle]="dynamicStyles()"> +

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.

+ +