Skip to content

Commit 3aca1b5

Browse files
committed
add description to changelog
1 parent 6e33e50 commit 3aca1b5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
## 1.0.2
44
* [[#50](https://github.com/VadimDez/ngx-filter-pipe/issues/50)] - How to call filterPipe transform from Component ?
55

6+
### Use FilterPipe in a component
7+
8+
Inject `FilterPipe` into your component and use it:
9+
10+
```ts
11+
class AppComponent {
12+
objects = [
13+
{ name: 'John' },
14+
{ name: 'Nick' },
15+
{ name: 'Jane' }
16+
];
17+
18+
constructor(private filter: FilterPipe) {
19+
let result = this.filter.transform(this.objects, { name: 'J' });
20+
console.log(result); // [{ name: 'John' }, { name: 'Jane' }]
21+
}
22+
}
23+
```
24+
625
## 1.0.1
726
* [[#46](https://github.com/VadimDez/ngx-filter-pipe/issues/46)] - Filter by property/method on prototype chain.
827
* [[#47](https://github.com/VadimDez/ngx-filter-pipe/pull/47)] - walk the prototype chain to check if field/property exists.

0 commit comments

Comments
 (0)