Docs

Angular Filters

This repository includes a few filters that you can use.
These filters are available in angular/filters/ folder.

Filter

Use Case

capitalize

Capitalizes the first character of each word and lowers the rest of the word.

humanReadable

converts tokens into human readable output. e.g.: {{ 'contact_us' | humanReadable }} output: Contact Us

truncateCharacters

Truncates characters according to specified length.

truncateWords

Truncates characters according to specified word count

trustHtml

Alias to $sce.trustAsHtml. Only use it if you know what you're doing.

ucfirst

Equivalent to PHP's ucfirst


Did this page help you?