And therefore, our ViewChild is not available in ngOnInit. If we run the code, we get this : undefined ChildComponent.
確定! 回上一頁