Any idea how to to build a component that float on evey page



I found one compenent from Youtube App, it will appear whenever video is playing and it also float on every page.

I woulf like to create a component like this on my ionic app. When user play an audio, this component will show above the tab. After audio finish, it will disappear automatically.

Any idea how to create a component?

Many thanks. Regards.


you have to place a component inside your root page. so that it’s displaysed at every page (as example in the tab page).
You can style it with css/scss that it floats on top of everything position absoulute and an higher z-idex
You can create a component with ionic g component [name]