I created angular components on Ionic 3. and I created several div tabs using *ngIf directive. Now I can switch between tabs using buttons..
However, when I navigate to other section of main html page which is containing that component, *ngIf directive seems to lose its current value. It defaults back to its original tab. This is a problem for me. I'm trying to make ngIf directive tab stay at where they are.. How can I accomplish this? should I store ngIf's value to local storage? is there any other way?
Main HTML page seems to store ngIf directive value as long as ngIf is not nested within a component.
Thanks in advance,