Ionic master code

Hello friends,

I am new to Ionic. I am using Ionic 4. I want to write a common html code in simple one file like index.html and call it from any page module of ionic. For example a common dialog or a loader wrote in index.html and calling it from any module page.
please help me out.
Thanks in advance.