sv-search-highlight
v0.0.1-1
Published
<p align="center"> <img style="text-align: center" src="https://angular-shortcode.web.app/assets/icons/logo-128.png"/> <h1 align="center">Angular Shortcode</h1> </p>
Downloads
8
Readme
SvSearchHighlight
Table of Contents
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