Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ion-router animated. Type 'string' is not assignable to type 'boolean'

$
0
0

I am trying to disable animation on my ionic 5 project. Searching through web I found a way to disable it by using animated=“false” in ion-router-outlet. It does disable the animation but when I try to build in production it gives me the following error.

     ionic capacitor build android --prod

     Error: src/app/app.component.html:114:35 - error TS2322: Type 'string' is not assignable to type 'boolean'.

     <ion-router-outlet id="content" animated="false" ></ion-router-outlet>

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>