unit property

String? unit

An optional indicator the unit coercion before assigning.

For example:

<div [style.height.px]="height"></div>

Means assign style.height to height plus the "px" suffix.

Implementation

String? get unit;