[Solution found!] ng-content像这样包装HTML元素div以获取对其的本地引用,然后将ngIf表达式绑定到ref.children.length == 0: template: `<div ...
確定! 回上一頁