Hi Sander, Sorry for being so dense :(
Actually I am learning that ngIf does a destroy of the component when the condition changes. If that is the case, I am on the wrong track. What I want looking to do is, on a button click, show a component and only hide whatever was in its place. Not destroying. Additionally, set a flag for the component that is currently shown. Similar to gmail and the different folders on the left column. I know they use routes. Any way to do that without routes? Regards, Reza On Thu, Aug 17, 2017 at 9:17 AM, Sander Elias <[email protected]> wrote: > Hi Reza, > > Depending on what kind of element you want to show/hide, you can, for > example, put another *ngIf on it. Or use [hidden]='selectedMetric > ==='Metric 2` > Or use classlist or the ngClass or one of the other way's angular hands > you to manipulate the dom. > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Angular and AngularJS discussion" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/angular/pV3Dm3KSw78/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
