-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: angular, mode property not available on ion-router-outlet #25813
Comments
Thanks for the issue. Can you provide a GitHub repo I can use to verify this behavior? I am unable to reproduce the issue in a blank Ionic starter app. |
@liamdebeasi It's really just your And don't forgett you have to run the PRODUCTION BUILD so thx a lot |
Thanks, I was missing the
However, I will note that the current usage in your app likely will not work as expected. The Since the |
@liamdebeasi About what you are writing, If Im not wrong we set in our app the By the way, why are we doing this? What we have noticed, to have the really same styles between But maybe we are missing something? Do we really need to set the Thx a lot |
I am not familiar with the internals of your application, so it is hard to say what is going on. Ionic defaults to using adaptive styling. This means that the For example, setting I will also note that we are looking to introduce a feature that will make it easy to design a consistent theme across platforms. This should make theming your app significantly easier by disabling the adaptive styling. It will also make it possible to have consistent look while maintaining the platform-specific behaviors. For example, you will be able to have a consistent look while still using the iOS page transition on iOS and the MD page transition on MD. |
This is exactly what we try to do, but we need to set the mode dynamically, because its not fixed to one, on android we still need them as MD.
This is exactly what we need to do, unique style but different behaviors, doing this what I've described seems to work. Is this a feature we will se in v7? |
We do not have a public timeline for this feature, but it's a feature we are actively working on. When there is a beta/preview version we will definitely be talking about it on our blog, Twitter, etc. |
Thanks for the issue. This has been resolved via #25816, and a fix will be available in an upcoming release of Ionic Framework. Feel free to follow up if you have more questions. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
I try to set the
mode
property on theion-router-outlet
on myionic/angular
project. Anything is fine working on development but once I rund my production build I run into this errorExpected Behavior
It seems to me its a
@ionic/angular
problem, because its a valid property in@ionic/core
for theion-router-outlet
Steps to Reproduce
Just do a clean starter template and try it
<ion-router-outlet [mode]="mode">
or
Code Reproduction URL
No response
Ionic Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: