If you have a
(click) listener on your “main” fab button, it will allways trigger the function
Do you have the option to set the
(click) listener on the “child” fab buttons, inside the “main” fab button? If yes, this could be your solution.
Otherwise, if it’s required, to execute allways the
doSomething() function, you could add it before the function of your “child” button/s.
Something like this:
<button ion-fab (click)="doSomething(); testOne();">Test One</button>
<button ion-fab (click)="doSomething(); testTwo();">Test Two</button>
<button ion-fab (click)="doSomething(); testThree();">Test Three</button>
- I don’t have the real markup in my mind, just as an example.
The much cleaner solution would be to bind the “main”
<ion-fab> button in your
.ts-file and listen to it, which “target”-fab button was clicked or bind the “target”-fab button directly in your
Let me know, if it could help you.