I have a parent component, let’s call it component A. Inside I have 10 tabs : T1 to T10
Inside child component T1, i have a button to save() my data.
I want also, change de color when it’s done to have the visual information of which tab is saved.
How can I do that ?
I try different things to learn, for exemple, in the parent component A ngOnInit() :
let tab1 = this.el.nativeElement.querySelector(“ion-tab-button”);
tab1.innerText = “T1 saved”;
this.renderer.setStyle( tab1, 'border', '2px dashed #FFE066' );
it works fine.
Now i want to access “ion-tab-button” from my function save() in the child component T1
But i’m lost on how i can do that.