ViewChildren 装饰器是用来从模板视图中获取匹配的多个元素,返回的结果是一个QueryList 集合。 Demo. child.component.ts. @Component({ selector: 'app- ...
確定! 回上一頁