This is the equivalent of using ngIf in angular + {N}, but for vanilla JS + {N}
As opposed to using visibility
attribute, this will not add the component specified in the template to the view, so the hidden component's loaded
event won't be triggered until the component is shown.
Kudos!
This is useful. Thank you! :D