24 lines
569 B
TypeScript
Executable File
24 lines
569 B
TypeScript
Executable File
import {NgModule} from '@angular/core';
|
|
|
|
import {AppComponent} from './app.component';
|
|
import {AppRoutingModule} from './app-routing.module';
|
|
import {Router} from '@angular/router';
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
AppRoutingModule
|
|
],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule {
|
|
// Diagnostic only: inspect router configuration
|
|
constructor(router: Router) {
|
|
console.log('Routes: ', JSON.stringify(router.config, undefined, 2));
|
|
}
|
|
}
|