Using AngularJS i can do it:
item in (filteredList.sup = (nozzles | rangeFilter: { flow: calc.q.tempFlow, pressure: calc.pressure } | orderBy: 'pressao'))
I've made a ng-repeat and the result of them, i have set into filteredList.sup variable.
I'm trying to do the same using Angular 2, but isn't so easy as AngularJS (I'm new on Angular 2)
.
I tried: ng2: How to create variable in ngFor loop
and
https://github.com/angular/angular/issues/2451
Without success! :/
PS* If i can use my pipes inside the "controller"/component.ts it can help too.
Actual code:
listService.ended
| filterBy: { empresaId: selectedCompany }
| filterOperador: filtroOperador
| dateRange: dateRange.min : dateRange.max
filterBy = https://www.npmjs.com/package/ng2-filter-pipe
filterOperador & dateRange = Custom Pipes