Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 352 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 352 Bytes

highlight-search

An angularjs filter for highlighting text in a filtered input string.

In the controller

$scope.inputString = 'Some test text to highlight';

$scope.someString = 'test';

In the view

 <span ng-bind-html="inputString | highlight: someString"></span>

In the stylsheet

.pi-highlighted {

}