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

Method hasServerAsset

packages/angular/ssr/src/assets.ts:44–46  ·  view source on GitHub ↗

* Checks if a specific server-side asset exists. * * @param path - The path to the server asset. * @returns A boolean indicating whether the asset exists.

(path: string)

Source from the content-addressed store, hash-verified

42 * @returns A boolean indicating whether the asset exists.
43 */
44 hasServerAsset(path: string): boolean {
45 return !!this.manifest.assets[path];
46 }
47
48 /**
49 * Retrieves the asset for 'index.server.html'.

Callers 1

handleServeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected