[SOLVED] pageInit / tabInit : both events depending on how template is included

I use an template called from componentUrl properties.

Sometimes it’s “embedded” in a tab, sometimes in a popup.

So, in my template code, I have for the “on” event : pageInit or tabInit.

I don’t wan’t to duplicate code for those 2.

How could I call the same code for pageInit or tabInit ?

You can just use component’s mounted() hook for this purpose

perfect. that’s what i was looking for.

thanks