MCPcopy Index your code
hub / github.com/angular/angular-cli / constructor

Method constructor

packages/angular/ssr/src/app.ts:114–125  ·  view source on GitHub ↗

* Constructs an instance of `AngularServerApp`. * * @param options Optional configuration options for the server application.

(private readonly options: Readonly<AngularServerAppOptions> = {})

Source from the content-addressed store, hash-verified

112 * @param options Optional configuration options for the server application.
113 */
114 constructor(private readonly options: Readonly<AngularServerAppOptions> = {}) {
115 this.allowStaticRouteRender = this.options.allowStaticRouteRender ?? false;
116 this.hooks = options.hooks ?? new Hooks();
117
118 if (this.manifest.inlineCriticalCss) {
119 this.inlineCriticalCssProcessor = new InlineCriticalCssProcessor((path: string) => {
120 const fileName = path.split('/').pop() ?? path;
121
122 return this.assets.getServerAsset(fileName).text();
123 });
124 }
125 }
126
127 /**
128 * The manifest associated with this server application.

Callers

nothing calls this directly

Calls 3

popMethod · 0.80
textMethod · 0.80
getServerAssetMethod · 0.80

Tested by

no test coverage detected