Releases: VadimDez/ngx-filter-pipe
Releases · VadimDez/ngx-filter-pipe
3.0.1
3.0.0
2.1.2
Improvements
Now $or
can filter with multiple predicates
class AppComponent {
objects = [
{ name: 'John' },
{ firstName: 'John' }
];
constructor(private filter: FilterPipe) {
let result = this.filter.transform(this.objects, { $or: [{ name: 'John' }, { firstName: 'John' }] });
console.log(result); // [{ name: 'John' }, { firstName: 'John' }]
}
}
2.1.1
2.1.0
2.0.0
Improvements
Breaking change
Bundle location is changed, therefore SYSTEMJS config should be updated
Append to map
var map = {
...
'ngx-filter-pipe': 'node_modules/ngx-filter-pipe/bundles'
}
and then add to packages
var packages = {
...
'ngx-filter-pipe': { defaultExtension: 'js' }
}
1.0.2
Improvements
- [#50] - How to call filterPipe transform from Component ?
Use FilterPipe in a component
Inject FilterPipe
into your component and use it:
class AppComponent {
objects = [
{ name: 'John' },
{ name: 'Nick' },
{ name: 'Jane' }
];
constructor(private filter: FilterPipe) {
let result = this.filter.transform(this.objects, { name: 'J' });
console.log(result); // [{ name: 'John' }, { name: 'Jane' }]
}
}
1.0.1
1.0.0
Changes
Breaking changes
- Module name was changed from
Ng2FilterPipeModule
toFilterPipeModule
. - UMD bundle for
SYSTEMJS
was added. Use/dist/bundles/ngx-filter-pipe.umd.js
instead of/dist/index.js
.
var packages = {
...
'ngx-filter-pipe': { main: 'dist/bundles/ngx-filter-pipe.umd.js' }
}