0.0.1-1 • Published 3 years ago

sv-search-highlight v0.0.1-1

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

npm.io

SvSearchHighlight

Table of Contents

Demo


Angular Shortcode

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


NameTypeDefault ValueDescription
valueanyThe main text
searchstringThe 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