基本上,你编写一个管道,然后你可以在 *ngFor 指令中使用它。 在您的组件中: ... <li *ngFor="let it of its | filter : 'name' : 'value or variable'">{{it}}</li>.
確定! 回上一頁