Simplified routing in tutorial example Updated ngmodule guide and ngmodule faq with routing module prose
13 lines
344 B
TypeScript
13 lines
344 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
import { ContactComponent } from './contact.component.3';
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild([
|
|
{ path: 'contact', component: ContactComponent}
|
|
])],
|
|
exports: [RouterModule]
|
|
})
|
|
export class ContactRoutingModule {}
|