Angular 4 - Remove current dynamic component programmatically

后端 未结 1 891
天涯浪人
天涯浪人 2021-01-13 01:59

I have created some dynamic components like -

相关标签:
1条回答
  • 2021-01-13 02:16

    You can Pass the component factory as a Reference to the Dynamic Build Component and then in the Dynamic Component Have a button Destroy .

    This Gist will give you a Clearer Idea.

    A live Example

    0 讨论(0)
提交回复
热议问题