Created
September 11, 2020 20:22
-
-
Save Dornhoth/50a2a01e55753febba88ea431f91b3d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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