Skip to main content
Module

x/angular_deno/mod.ts>CommonEngine

Angular Deno - Experimental Angular renderer in server with Deno
Go to Latest
class CommonEngine
import { CommonEngine } from "https://deno.land/x/angular_deno@v0.3.0/mod.ts";

Constructors

new
CommonEngine(
compilerFactory: CompilerFactory,
moduleOrFactory?: any,
providers?: any[],
)

Properties

private
factoryCacheMap: Map<any, any>
private
readonly
templateCache: Map<string, string>

Methods

private
getDocument(filePath: string): Promise<string>

Retrieve the document from the cache or the filesystem

getCompiler(): Compiler

Return an instance of the platformServer compiler

getFactory(moduleOrFactory: any): Promise<any>

Return the factory for a given engine instance

render(opts: any): Promise<string>

Render an HTML document for a specific URL with specified render options