Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nguniversal/common

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nguniversal/common

Angular Universal common

  • 5.0.0-beta.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75K
increased by2.61%
Maintainers
1
Weekly downloads
 
Created
Source

Angular Universal Common Module

This is the common Angular Universal module that is common across server-side rendering app irrespective of the rendering engine.

The package can be installed using:

npm install @nguniversal/common --save

TransferHttpCacheModule

TransferHttpCacheModule installs a Http interceptor that avoids duplicate HttpClient requests on the client, for requests that were already made when the application was rendered on the server side.

When the module is installed in the application NgModule, it will intercept HttpClient requests on the server and store the response in the TransferState key-value store. This is transferred to the client, which then uses it to respond to the same HttpClient requests on the client.

Usage

To use the TransferHttpCacheModule just install it as part of the top-level App module.

That's it!

import {TransferHttpCacheModule} from@nguniversal/common’;

@NgModule({
  imports: [
    BrowserModule.withServerTransition({appId: ‘my-app’}),
    TransferHttpCacheModule,
  ],
  bootstrap: [MyApp]
})
export class AppBrowserModule() {}

FAQs

Package last updated on 11 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc