i looking build list of elements within html, on property within list.
<ul> <li *ngfor="#record of recordsservice.records"> {{record.recordtitle}} - <strong>{{record.recordartist}}</strong> </li> </ul> within #record object, there issingle property either true or false.
i skip on false elements in loop, without having leave empty divs in dom
you can apply pipe on array recordsservice.records filter value want.
pipe similar filter in angular1: https://angular.io/docs/ts/latest/guide/pipes.html
Comments
Post a Comment