Looking for the old docs site? You can still view it for a limited time here.

maxCharacters

Description

Renders fields actual value

Usage

In HTML Template Binding

{{ maxCharacters_expression | maxCharacters:maxCharacters }}

In JavaScript

$filter('maxCharacters')(string, maxCharacters)

Parameters

Param Type Details
string string

The field to get the actual value from

maxCharacters number

Number of characters to display