Lag during redirection from home page to a form in ionic angular app

Issue

Home Page|ionic form|ionic issueI have newly created an ionic angular app. I have created a form. I have a button in home page on click of it redirects to the form. But the issue is that there is a lag when the form is loaded.

There is no smooth transition from home page to the form. Could someone help on how to resolve this issue and achieve a smooth transition from the home page to the form.

Solution

Basically this is not an issue as I had thought earlier but it is a default behavior of ionic routing. Looks like this is the default animation ionic provides when we route to some page. By setting [animated]="false" we can override the default behavior. Like this:

<ion-router-outlet id="main-content" [animated]="false">

Answered By – Suhas Mohan

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published