MCPcopy Create free account
hub / github.com/angular/components / computeApiDocumentUrl

Function computeApiDocumentUrl

tools/dgeni/common/compute-api-url.ts:8–14  ·  view source on GitHub ↗
(apiDoc: Document, moduleInfo: ModuleInfo)

Source from the content-addressed store, hash-verified

6 * needs to be kept in sync with the routes from the material.angular.dev CLI project.
7 */
8export function computeApiDocumentUrl(apiDoc: Document, moduleInfo: ModuleInfo): string {
9 // Base URL for the given package. This is currently either:
10 // 1) material.angular.dev/cdk
11 // 2) material.angular.dev/components
12 const baseUrl = moduleInfo.packageName === 'cdk' ? 'cdk' : 'components';
13 return `${baseUrl}/${moduleInfo.entryPointName}/api#${apiDoc.name}`;
14}

Callers 1

$processMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected