provideTelixon
function provideTelixon(options?: TelixonOptions): EnvironmentProviders;Adds the package’s providers to an application. Every directive and component works without the call. What the call adds is the engine preload.
export const appConfig: ApplicationConfig = { providers: [provideTelixon({ preloadEngine: true })],};TelixonOptions
Section titled “TelixonOptions”| Field | Type | Meaning |
|---|---|---|
preloadEngine |
boolean |
Start loading the engine right after the application’s first render, in the browser only; false by default. |
With the preload, a field that appears after the first render, on a lazy route or inside a @defer
block, finds the engine ready. A field on the first screen starts the same load on its own. A
failed load reports to ErrorHandler.