@nguniversal/express-engine

  • Version 15.0.0
  • Published
  • 160 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, html?: string) => void
) => void;
  • This is an express engine for handling Angular Applications

Interfaces

interface NgSetupOptions

interface NgSetupOptions
extends Pick<
RenderOptions_2,
'providers' | 'publicPath' | 'inlineCriticalCss'
> {}
  • These are the allowed options for the engine

property bootstrap

bootstrap: NonNullable<RenderOptions_2['bootstrap']>;

    interface RenderOptions

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

    property req

    req: Request_2;

      property res

      res?: Response_2;

        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>