Directives - md-highlight-text

mdHighlightText API Documentation

The md-highlight-text directive allows you to specify text that should be highlighted within an element. Highlighted text will be wrapped in <span class="highlight"></span> which can be styled through CSS. Please note that child elements may not be used with this directive.

Usage

Attributes

Parameter Type Description
* md-highlight-text string string

A model to be searched for

md-highlight-flags string string

A list of flags (loosely based on JavaScript RexExp flags).

Supported flags:

  • g: Find all matches within the provided text
  • i: Ignore case when searching for matches
  • $: Only match if the text ends with the search term
  • ^: Only match if the text begins with the search term