基本上,你编写一个管道然后可以在 *ngFor 指令中使用。 ... <ul> <li *ngFor="let item of _items | filter:{label: filterText}">{{ item.label }}</li> </ul>.
確定! 回上一頁