# ngx-markjs
npm install ngx-markjsIt is Angular 8 wrapper for very cool text highlighting lib Mark.js
npm i mark.js
npm i ngx-markjs
`$3
`
...
import {NgxMarkjsModule} from 'ngx-markjs';@NgModule({
...
imports: [
...
NgxMarkjsModule
],
...
})
export class AppModule { }
`
$3
`
[markjsHighlight]="searchText"
[markjsConfig]="config"
[scrollToFirstMarked]="true"
>
`$3
Incase of some compilation issues you can try to import ngxMarkjsModule directly in your application from .tx file
`
import {NgxMarkjsModule} from 'ngx-markjs/src/public-api';
`$3
Clone this repo and do install
`
npm installng serve
``Additional mark.js config params can be found on its officail site
Did you Like this lib? Follow me on Twitter for more Angular and RxJS staff!
Need a mentorship for Angular and RxJS? Find me on codementor.io