Skip to content

Commit

Permalink
fix(typeahead): change function name from hightlight to highlight (#4091
Browse files Browse the repository at this point in the history
)

Closes #3518
  • Loading branch information
5earle authored and valorkin committed May 15, 2018
1 parent 4e9fda6 commit 97171ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/typeahead/typeahead-container.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[ngTemplateOutletContext]="{matches:matches, itemTemplate:itemTemplate, query:query}"></ng-template>

<!-- default options item template -->
<ng-template #bsItemTemplate let-match="match" let-query="query"><span [innerHtml]="hightlight(match, query)"></span>
<ng-template #bsItemTemplate let-match="match" let-query="query"><span [innerHtml]="highlight(match, query)"></span>
</ng-template>

<!-- Bootstrap 3 options list template -->
Expand Down
2 changes: 1 addition & 1 deletion src/typeahead/typeahead-container.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export class TypeaheadContainerComponent {
this._active = value;
}

hightlight(match: TypeaheadMatch, query: any): string {
highlight(match: TypeaheadMatch, query: any): string {
let itemStr: string = match.value;
let itemStrHelper: string = (this.parent && this.parent.typeaheadLatinize
? latinize(itemStr)
Expand Down

0 comments on commit 97171ff

Please sign in to comment.