fixed state transfer, cleanup

This commit is contained in:
Eugene Pankov 2021-12-30 12:21:55 +01:00
parent 77475ecc65
commit 268b3cc7bd
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4
3 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/no-extraneous-class */
import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { BrowserModule, BrowserTransferStateModule } from '@angular/platform-browser'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { CommonModule } from '@angular/common'
import { FormsModule } from '@angular/forms'
@ -35,6 +35,7 @@ const ROUTES = [
BrowserModule.withServerTransition({
appId: 'tabby',
}),
BrowserTransferStateModule,
CommonAppModule.forRoot(),
TransferHttpCacheModule,
BrowserAnimationsModule,

View File

@ -28,6 +28,7 @@ img {
object-fit: contain;
width: 100%;
height: 100%;
border-radius: 12px;
}
.overlay {

View File

@ -11,4 +11,6 @@ import { AppModule } from './app.module'
enableProdMode()
platformBrowserDynamic().bootstrapModule(AppModule)
document.addEventListener('DOMContentLoaded', () => {
platformBrowserDynamic().bootstrapModule(AppModule)
})