Skip to content

nourBerro/angular-2-pipes

Repository files navigation

angular-2-pipes

i have created several angular 2 pipes dealing with JSON arrays

1- filter : which can be used to filter the array by property
{{posts | filter:'userId':1 json }}
filter : the pipe
first arg is the property name
second arg is the value

2- select filter: which can be used to select multi proprties from the array object
{{posts | select:'userId':'title' | json }}

to use pipes you need to add those files into your project then import the pipe into your component and declare it in you app module https://angular.io/docs/ts/latest/guide/pipes.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published