How to use the @nguniversal/common.TransferHttpCacheModule function in @nguniversal/common

To help you get started, we’ve selected a few @nguniversal/common examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github patrickmichalina / fusing-angular / .dist / public / js / app.js View on Github external
AppModule = __decorate([
        core_1.NgModule({
            declarations: [
                app_component_1.AppComponent,
                home_component_1.TestComponent,
                home_component_1.HomeComponent,
                home_component_1.NotFoundComponent
            ],
            imports: [
                platform_browser_1.BrowserModule.withServerTransition({ appId: 'my-app' }),
                router_1.RouterModule.forRoot([
                    { path: '', component: home_component_1.HomeComponent },
                    { path: 'test', component: home_component_1.TestComponent }
                    // { path: '**', component: NotFoundComponent }
                ], { initialNavigation: true }),
                common_1.TransferHttpCacheModule
            ],
            providers: [],
            bootstrap: [app_component_1.AppComponent]
        })
    ], AppModule);
    return AppModule;
}());
exports.AppModule = AppModule;
github patrickmichalina / fusing-angular / .dist / server.js View on Github external
AppModule = __decorate([
        core_1.NgModule({
            declarations: [
                app_component_1.AppComponent,
                home_component_1.TestComponent,
                home_component_1.HomeComponent,
                home_component_1.NotFoundComponent
            ],
            imports: [
                platform_browser_1.BrowserModule.withServerTransition({ appId: 'my-app' }),
                router_1.RouterModule.forRoot([
                    { path: '', component: home_component_1.HomeComponent },
                    { path: 'test', component: home_component_1.TestComponent }
                    // { path: '**', component: NotFoundComponent }
                ], { initialNavigation: true }),
                common_1.TransferHttpCacheModule
            ],
            providers: [],
            bootstrap: [app_component_1.AppComponent]
        })
    ], AppModule);
    return AppModule;
}());
exports.AppModule = AppModule;