Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 6972119

Browse files
Splaktarjelbourn
authored andcommitted
docs(contact-chips): improve the comments about highlighting (#11362)
using md-highlight-text on contact chips actually breaks the component only md-highlight-flags is supported on contact chips add md-highlight-flags example to mdHighlightDirective docs Relates to #8142
1 parent 0dd688c commit 6972119

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/autocomplete/js/highlightDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ angular
2424
* <hljs lang="html">
2525
* <input placeholder="Enter a search term..." ng-model="searchTerm" type="text" />
2626
* <ul>
27-
* <li ng-repeat="result in results" md-highlight-text="searchTerm">
27+
* <li ng-repeat="result in results" md-highlight-text="searchTerm" md-highlight-flags="i">
2828
* {{result.text}}
2929
* </li>
3030
* </ul>

src/components/chips/js/contactChipsDirective.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ angular
1313
* returns a list of possible contacts. The user can select one of these and add it to the list of
1414
* chips.
1515
*
16-
* You may also use the `md-highlight-text` directive along with its parameters to control the
17-
* appearance of the matched text inside of the contacts' autocomplete popup.
16+
* You may also use the <a ng-href="api/directive/mdHighlightText">md-highlight-flags</a> attribute
17+
* along with its parameters to control the appearance of the matched text inside of the contacts'
18+
* autocomplete popup.
1819
*
1920
* @param {expression} ng-model Assignable AngularJS expression to be data-bound to the list of
2021
* contact chips. The expression should evaluate to an `Object` Array.

0 commit comments

Comments
 (0)