
This commit updates the docs examples to be compatible with the `import-spacing` tslint rule. This is in preparation of updating the docs examples `tslint.json` to match the one generated for new Angular CLI apps in a future commit. PR Close #38143
17 lines
431 B
TypeScript
17 lines
431 B
TypeScript
// #docregion
|
|
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
import { MovieListComponent } from './movie-list.component';
|
|
|
|
const routes: Routes = [
|
|
{ path: '', redirectTo: '/movies', pathMatch: 'full' },
|
|
{ path: 'movies', component: MovieListComponent }
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule {}
|