@nguniversal/express-engine

  • Version 12.0.1
  • Published
  • 155 kB
  • 2 dependencies
  • MIT license

Install

npm i @nguniversal/express-engine
yarn add @nguniversal/express-engine
pnpm add @nguniversal/express-engine

Overview

Express Engine for running Server Angular Apps

Index

Functions

function ngExpressEngine

ngExpressEngine: (
setupOptions: Readonly<NgSetupOptions>
) => (
filePath: string,
options: object,
callback: (err?: Error | null | undefined, html?: string | undefined) => void
) => void;
  • This is an express engine for handling Angular Applications

Interfaces

interface RenderOptions

interface RenderOptions extends RenderOptions_2 {}
  • These are the allowed options for the render

property req

req: Request;

    property res

    res?: Response;

      Type Aliases

      type NgSetupOptions

      type NgSetupOptions = Pick<
      RenderOptions_2,
      'bootstrap' | 'providers' | 'publicPath' | 'inlineCriticalCss'
      >;
      • These are the allowed options for the engine

      Package Files (1)

      Dependencies (2)

      Dev Dependencies (0)

      No dev dependencies.

      Peer Dependencies (4)

      Badge

      To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

      You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@nguniversal/express-engine.

      • Markdown
        [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@nguniversal/express-engine)
      • HTML
        <a href="https://www.jsdocs.io/package/@nguniversal/express-engine"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>