Maybe because while declaring @ViewChild, the other ng-template is not in the DOM. Here is the component code: @ViewChild('loadComponent' ...
確定! 回上一頁