0.0.1-1 • Published 3 years ago
sv-search-highlight v0.0.1-1
SvSearchHighlight
Table of Contents
Demo
comment: <> (✨ Stackblitz(https://stackblitz.com/edit/svstarrating?file=src/app/app.component.ts); ✨)
comment: <> (| Stackblitz(#demo))
Installation
Install with NPM
npm i sv-search-highlight
Options
Name | Type | Default Value | Description |
---|---|---|---|
value | any | The main text | |
search | string | The search text |
Usage
Import SvSearchHighlightModule in your app
import { SvSearchHighlightModule } from 'sv-search-highlight';
@NgModule({
imports: [
...
SvSearchHighlightModule
],
...
})
export class AppModule { }
Example
<input [(ngModel)]="search">
<div [innerHTML]="value | svSearchHighlight : search"></div>
Author
Mehdi Sadeghian
Samira Vahidi
Contact
github
linedIn
twitter