So I populate a table with *ngFor and use pipes to filter and order the given array. This works perfectly and the table rows are created as expected. But I also wan't to use the result of the pipes in my component hosting the table. How can this be achieved with angular2?
html:
<tr *ngFor="#item of items | orderAsc">{{item.name}}</tr> the angularJS way:
<tr *ngFor="#item of (result = (items | orderAsc))">{{item.name}}</tr> where "result" could be used in the corresponding controller.
What is the angular2 way of achieving this?