Angular pipe for fuzzy-searching. Powered by Fuse.js
npm install angular-fuseapp.module.ts`
`
import { NgFuseModule } from 'angular-fuse';
@NgModule({
imports: [
...
NgFuseModule,
...
],
...
})
`
Using NgFuse within `*ngFor` directive
`
`
$3
NgFuse uses Fuse.js default options. For more details, see Fuse.js Official Documentation
`
defaults: NgFuseOptions = {
shouldSort: true,
threshold: 0.3,
location: 0,
distance: 100,
maxPatternLength: 32,
minMatchCharLength: 1,
minSearchStringLenght: 1
}
``