Remove a component


#1

Dear Member,

I have a doubt, I have a component which I render and remove from UI using an if condition as follows:

{{#if isShowComponent}}
   {{my-component model=model}}
{{/if}}

Now, say on a button click a boolean property shows and hides this component on UI. Now I want to ask that when the boolean property “isShowComponent” in this case, is false, the component “my-component” vanishes from the screen completely (release memory and resources) or just get hidden and when the property becomes true the same component (which was hidden) comes back or completely new copy of the component shows up.

Regards

#Dn