Customer Loader in ionic 4

How i define a custom loader to use in all pages in ionic 4