18 lines
412 B
TypeScript
18 lines
412 B
TypeScript
|
import { NgModule } from '@angular/core';
|
||
|
import { RouterModule } from '@angular/router';
|
||
|
|
||
|
import { AppComponent } from './app.component';
|
||
|
import { HeroButtonComponent } from './heroes';
|
||
|
|
||
|
@NgModule({
|
||
|
imports: [
|
||
|
RouterModule.forChild([{ path: '05-12', component: AppComponent }])
|
||
|
],
|
||
|
declarations: [
|
||
|
AppComponent,
|
||
|
HeroButtonComponent
|
||
|
],
|
||
|
exports: [ AppComponent ]
|
||
|
})
|
||
|
export class AppModule {}
|