How To
Documentation
    Learn More

      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

      ParamTypeDetails
      inputstring

      The input to check if it is null

      placeholderstring

      The value to display while input is null