executeAfter10s() {. console.log('will be executed 10s after component ngOnInit trigger. } ngOnInit() {. setTimeout(() => this.layoutView(), 10000);. } ...
確定! 回上一頁