A
A
ar52017-09-21 16:02:15
JavaScript
ar5, 2017-09-21 16:02:15

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

2 answer(s)
U
Urukhayy, 2017-09-21
@Urukhayy

If Angular 2+, maybe you should try *ngIf ?
It hides the DOM content itself.

P
Pavel Kornilov, 2017-09-21
@KorniloFF

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 question

Ask a Question

731 491 924 answers to any question