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

Function angularComponent

__tests__/sync-navigation-retry.test.ts:36–43  ·  view source on GitHub ↗
(name: string, body = '', template = '<p>x</p>')

Source from the content-addressed store, hash-verified

34}
35
36const angularComponent = (name: string, body = '', template = '<p>x</p>') => `import { Component } from '@angular/core';
37import { Router } from '@angular/router';
38@Component({ selector: 'app-x', template: '${template}' })
39export class ${name} {
40 constructor(private readonly router: Router) {}
41${body}
42}
43`;
44
45const CASES: Case[] = [
46 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected