Function
ngComponent
(name: string, selector: string, templateUrl: string, body = '', imports = '')
Source from the content-addressed store, hash-verified
| 98 | // --------------------------------------------------------------------------- |
| 99 | |
| 100 | const 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 | }) |
| 107 | export class ${name} { |
| 108 | ${body} |
| 109 | } |
| 110 | `; |
| 111 | |
| 112 | describe('an ASP.NET solution with its single-page apps three levels down, indexed', () => { |
| 113 | let root: string; |
Tested by
no test coverage detected