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?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.