Hello,
how do I migrate our angular7 project to ionic4?
simply by calling:
$ ionic init
$ npm install @ionic/angular
then I imported the following to app.module.ts
:
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { RouteReuseStrategy } from '@angular/router';
then in imports array:
imports: [
.
.
.
IonicModule.forRoot(),
]
and in providers:
providers: [
.
.
.
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy },
]
then
$ ionic serve --project=YOUR_PROJECT_NAME --configuration=YOUR_ENVIRONMENT_NAME