How to create ionic 2 re-useable Loader spinner?

If you want to use loader spinner to show while HTTP call is in progress or in some other time-consuming activity. You can use ionic’s loading component, shown here

We can use same loading component as service in a convenient way.

Let’s create loadingService.ts as below.

Then inject loadingService in your page or where ever you want to use it, as you can see in below homePage.ts

Tagged , ,
  • Hello this is kinda of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding skills so I wanted to get advice from someone with experience. Any help would be greatly appreciated!

    • wwebz admin

      Most of the time I do manually code HTML, doing so I will have more control over content.

  • I need to to thank you for this very good read!! I definitely loved every little bit of it. I have you book-marked to check out new things you post…