Answer the question
In order to leave comments, you need to log in
Should the component be removed after closing?
Hello friends this is the moment. I have a component that slides out from the left.
It shows additional information. Those. when i close the component it goes off screen. I would like to remove the component, but as I understand it, it is necessary to delete the contents of the component, and the component itself remains on the page? <side></side>
Answer the question
In order to leave comments, you need to log in
If Angular 2+, maybe you should try *ngIf ?
It hides the DOM content itself.
If the repeated call of the component is excluded, then you can delete it. And so in general, hidden is quite enough.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question