Skip to content

Instantly share code, notes, and snippets.

@DuncanFaulkner
Created April 5, 2021 13:33
Show Gist options
  • Save DuncanFaulkner/c024e7ecea8d910fe7d02dd151ac041d to your computer and use it in GitHub Desktop.
Save DuncanFaulkner/c024e7ecea8d910fe7d02dd151ac041d to your computer and use it in GitHub Desktop.
SSR
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
import { TransferHttpCacheModule } from '@nguniversal/common'; // HERE
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule.withServerTransition({appId: 'my-app'}),
TransferHttpCacheModule // AND HERE
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment