scorpion-search-multiple-fields
v1.0.3
Published
An Angular pipe to filter on multiple fields and searchoptions
Downloads
1
Maintainers
Readme
THIS IS JUST A TEST FOR NOW, AND THE PRODUCT IS NOT YET FINISHED I have allready added my code from my pipe, but it's not installable as an npm and working in a project
scorpion-search-multiple-fields
Angular 2+ pipe for searching and filtering on multiple, and specific, fields
Example usage:
<li *ngFor="let n of list | searchMultipleFields: queryString : ['name','age'] ">
Or you can also set this.searchableFields = ['name','age']
in the module and use:
<li *ngFor="let n of list | searchMultipleFields: queryString : searchableFields ">
The queryString can be an array or a string. If the string contains ',' the string will be split into an array.
Information for development
Since i'm new to NPM packaging i have documented a piece of code for myselve when i create a new version of my code
- Use
npm version patch
to update the version - followed by
npm publish
to publish a new version on NPM