Destroy a Dynamically Instantiated Angular Component

Share this video with your friends

Send Tweet

With our dynamic tabs we also want to give our users the possibility to close them again. As such we also need to account for destroying our dynamically created components. In this lesson we will learn how the ViewContainerRef can help us with that.