Skip to main content

pipes

defined

Converts a value to false if it is undefined and true otherwise.

<glint-badge [interactive]="showMore | defined" (showMore)="showMore()"></glint-badge> 

ellipsis

Clips a string and adds ... when it exceeds a maximum length.

<span>{{ label | ellipsis }}</span>
<span>{{ label | ellipsis 30 }}</span>

firstToUpper

Changes the first character of a string to uppercase.

<span>{{ label | firstToUpper }}</span>