You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To destroy a component we invoke the destroy method defined in ComponentRef, then we clear ViewContainerRef which holds the actual component, doing so will also remove it from the UI.
the cleanup will be performed in ngOnDestroy lifecycle, the subscription is as mentioned previously an instance of Subject that we used to unsubscribe from EventEmitter subscriptions.
To destroy a component we invoke the
destroy
method defined inComponentRef
, then we clearViewContainerRef
which holds the actual component, doing so will also remove it from the UI.the cleanup will be performed in
ngOnDestroy
lifecycle, thesubscription
is as mentioned previously an instance ofSubject
that we used to unsubscribe fromEventEmitter
subscriptions.The text was updated successfully, but these errors were encountered: