Angular 2 life cycle hook after all children are initialized?

后端 未结 7 1535
走了就别回头了
走了就别回头了 2020-12-15 15:10

I am looking for a concept to implement the following case:

I have a parent search component that has some components as view children / content children for displa

相关标签:
7条回答
  • 2020-12-15 16:00

    You can try this. It Worked for me

    async ngOnInit() {
        // method to call
       await this.myMethod(); 
      }
    }
    
    0 讨论(0)
提交回复
热议问题