MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / ngComponent

Function ngComponent

__tests__/package-deps.test.ts:100–110  ·  view source on GitHub ↗
(name: string, selector: string, templateUrl: string, body = '', imports = '')

Source from the content-addressed store, hash-verified

98// ---------------------------------------------------------------------------
99
100const ngComponent = (name: string, selector: string, templateUrl: string, body = '', imports = '') => `import { Component } from '@angular/core';
101${imports}
102@Component({
103 standalone: false,
104 selector: '${selector}',
105 templateUrl: '${templateUrl}'
106})
107export class ${name} {
108${body}
109}
110`;
111
112describe('an ASP.NET solution with its single-page apps three levels down, indexed', () => {
113 let root: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected