Marcos Henrique da Silva
1 min readFeb 25, 2019

--

Nice work! Very straightforward.

Worked very good after adding the loader.component to app.component

For who might get lost, few steps missing:

at app.component.html, add app-loader like:
<ion-app>
<app-loader></app-loader>
<ion-router-outlet></ion-router-outlet>
</ion-app>

at app.module.ts, declare the component:

declarations: [AppComponent, LoaderComponent],
entryComponents: [],
...

Btw, I’ve tested with Ionic 4.

Random question, how would you approach for disabling all buttons from the app meanwhile waiting for an http request?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Responses (1)

Write a response