Thank you for the reply.
In standalone components with angular, It seems that i need to import each tag i am using like so :
@Component({
selector: 'app-home-page',
templateUrl: './home-page.page.html',
styleUrls: ['./home-page.page.scss'],
standalone: true,
imports: [
IonicModule,
CommonModule,
IonHeader,
IonToolbar,
IonTitle,
IonContent,
IonButtons
],
})
but then,i have an error in the console (only in the web, the app compiles fine for xcode) saying :
to resolve this i had to remove the IonicModule import
// import { IonicModule } from '@ionic/angular';
import { IonContent, IonHeader, IonTitle, IonToolbar, IonButtons } from '@ionic/angular/standalone';
@Component({
selector: 'app-home-page',
templateUrl: './home-page.page.html',
styleUrls: ['./home-page.page.scss'],
standalone: true,
imports: [
// IonicModule,
CommonModule,
FormsModule,
IonHeader,
IonToolbar,
IonTitle,
IonContent,
IonButtons
],
})
then, it works on the web and on the emulator (ios, iphone15).
Is it the common practice ?
Please advise,
Thank you very much