Rooting the Application
Find out what logic needs to be implemented in the root module for the Ionic Movies app.
We'll cover the following...
The app root module
Within the src/app/app.module.ts
Angular module, we make the following changes (highlighted):
Press + to interact
import { NgModule } from '@angular/core';import { BrowserModule } from '@angular/platform-browser';import { HttpClientModule } from '@angular/common/http';import { RouteReuseStrategy } from '@angular/router';import { IonicModule, IonicRouteStrategy } from '@ionic/angular';import { AppRoutingModule } from './app-routing.module';import { AppComponent } from './app.component';@NgModule({declarations: [AppComponent],entryComponents: [],imports: [BrowserModule,HttpClientModule,IonicModule.forRoot(),AppRoutingModule],providers: [{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }],bootstrap: [AppComponent]})export class AppModule {}
Now let’s take time to perform some further adjustments, within the
SharedComponentsModule
.
Changes in the SharedComponentsModule
In the ...