mirror of
https://github.com/stashapp/stash.git
synced 2025-12-07 08:54:10 +01:00
30 lines
884 B
TypeScript
30 lines
884 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { BrowserModule } from '@angular/platform-browser';
|
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
import { Router } from '@angular/router';
|
|
|
|
// App
|
|
import { AppComponent } from './app.component';
|
|
|
|
// Modules
|
|
import { CoreModule } from './core/core.module';
|
|
import { AppRoutingModule } from './app-routing.module';
|
|
|
|
@NgModule({
|
|
imports: [
|
|
BrowserModule,
|
|
BrowserAnimationsModule,
|
|
// Only include non-lazy loaded modules here
|
|
CoreModule,
|
|
// Keep app routing last so that other module routes install first
|
|
AppRoutingModule
|
|
],
|
|
declarations: [AppComponent],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule {
|
|
// Diagnostic only: inspect router configuration
|
|
constructor(router: Router) {
|
|
console.log('Routes: ', JSON.stringify(router.config, undefined, 2));
|
|
}
|
|
}
|