Does anyone know howto get lazyloading on firebase hosting working? It all works but when I view the source code of my site, I only see the router-outlet and not the text and so on. I've added the code below to my index.js inside the functions folder:
extraProviders: [
provideModuleMap(LAZY_MODULE_MAP)
]
My app.server.module file looks like this:
import { NgModule } from '@angular/core';
import { ServerModule } from '@angular/platform-server';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
@NgModule({
imports: [
AppModule,
ServerModule
],
bootstrap: [AppComponent],
})
export class AppServerModule {}
But when I use firebase deploy in my console, it has deployed succesfully. However when I visit my site after that, I get an error and a blank page.
So if anyone can point me to the right direction, that would be awesome !