Skip to content

Instantly share code, notes, and snippets.

@Dornhoth
Created September 11, 2020 20:22
Show Gist options
  • Save Dornhoth/50a2a01e55753febba88ea431f91b3d4 to your computer and use it in GitHub Desktop.
Save Dornhoth/50a2a01e55753febba88ea431f91b3d4 to your computer and use it in GitHub Desktop.
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ModuleAModule } from './moduleA/moduleA.module';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
AppRoutingModule,
ModuleAModule.forRoot(),
],
bootstrap: [AppComponent]
})
export class AppModule { }
import { NgModule } from '@angular/core';
import { ModuleAModule } from '../moduleA/moduleA.module';
import { ModuleBComponent } from './moduleB.component';
import { ModuleBRoutingModule } from './moduleB.routing.module';
@NgModule({
declarations: [
ModuleBComponent,
],
imports: [
ModuleAModule.forChild(),
ModuleBRoutingModule,
],
})
export class ModuleBModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment