placeholder

Description

Renders a placeholder while a field is null.

Usage

In HTML Template Binding

{{ placeholder_expression | placeholder:placeholder }}

In JavaScript

$filter('placeholder')(input, placeholder)

Parameters

Param Type Details
input string

The input to check if it is null

placeholder string

The value to display while input is null