Open TriVeDev opened 5 years ago
Is it possible you might have a race condition here? Perhaps using the (loaded)="onDOMLoad($event)"
could save you from needing the setTimeout
?
setTimeout(() => { this.createBanner(); }, 1500);
@TriVeDev did you solve it? I have the same issue
Hi all,
In debug mode, the banner appears fine on the screen. When i set the "testing" boolean to false, the banner don't appear anymore. Sometimes if i tap the banner area frantically, it may appear...
I tried the demo code and it works just fine.
I really can't figure why it doesn't work while not in testing mode.
My component code: Home.component.ts:
home.component.html:
home.component.scss:
Any idea?
Regards,
Tristan