Comments (5)
The important thing here is developers cannot mix imports from @ionic/angular
with @ionic/angular/standalone
. This is noted in the documentation. So even though HomePage
imports everything from @ionic/angular
other places in your application (such as main.ts
) likely import from @ionic/angular/standalone
.
Since Angular CLI/Webpack handles the compilation of your application, Ionic does not have insight into which components you are importing from.
However, if you are using VSCode you can update the VSCode settings to never recommend imports from @ionic/angular
or never recommend imports from @ionic/angular/standalone
depending on your project setup.
from ionic-framework.
Thanks for the report. Can you clarify what your request is? You should be able to use IonicModule
inside of an Angular standalone component. However, you cannot use IonicModule
and Ionic standalone components in an Angular standalone component. Is this what you are referring to?
from ionic-framework.
Steps I did to reproduce the bug
- ionic start > angular > standalone
- go to homepage and swap IonHeader, IonToolbar, IonTitle, IonContent with IonicModule
- fill the page with lorems
- Cannot scroll (and UI breaks down) (only android, ionic serve works as expected)
I tried adding more pages, but as long the homepage has IonHeader, IonToolbar, IonTitle, IonContent it will work even if the new page uses IonicModule. It is a weird bug and tbf I'm not sure what exactly it's causing it.
from ionic-framework.
Thanks this solves it for me :)
from ionic-framework.
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.
from ionic-framework.
Related Issues (20)
- bug: IonRouterOutlet missing the properties onPointerEnterCapture, onPointerLeaveCapture HOT 5
- bug: Angular 17 and Ionic 7 - SSR issue HOT 4
- bug: IonRouterOutlet | Type '{ children: Element[]; }' is missing the following properties from type 'Pick<IonRouterOutlet & { basePath?: string | undefined; ref?: Ref<any> | undefined; ionPage?: boolean | undefined; } & IonicReactProps & Omit<...>, keyof IonicReactProps | ... 253 more ... | "ionPage">': onPointerEnterCapture, HOT 2
- bug: Filled Input changing the centered vertically of label when switch font-family css HOT 5
- bug:test HOT 1
- bug: autocapitalize is required in IonSearchbar types HOT 4
- Where is the dist folder containing code on your CDN? HOT 2
- bug: ion-datetime Month Navigation Fails in RTL Mode" HOT 1
- feat: select, add errorText and helperText props HOT 1
- bug: Ionic 7+ Angular LoadingController with Http Interceptor Loader Present and Dismiss issue HOT 2
- bug: the labelPlacement attribute set to 'floating' does not function properly when buttons or icons are used within a ion text area. HOT 2
- bug: popover without ion-content not scrollable HOT 2
- feat: Support `input#list` HOT 3
- bug: Black text color on dark theme HOT 4
- bug: IonListHeader and IonButton inconsistent alignment HOT 6
- bug: [v7.8.1] angular standalone do not load correctly ionic componentes in production build HOT 3
- bug: window.Ionic.platforms returns ['mobile', 'mobileweb'] instead of ['desktop'] on chromium based browser HOT 1
- bug: Angular Standalone Components - Disabled IonSelect inside IonItem is not being fully disabled HOT 1
- feat: Style ion-accordion detail arrow HOT 1
- bug: HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-framework.