MCPcopy Create free account
hub / github.com/angular/angular / ComponentClass

Class ComponentClass

packages/core/test/test_bed_spec.ts:1667–1684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1665 deferrableDependencies: Array<Type<unknown>> = [],
1666 ) => {
1667 class ComponentClass {
1668 static ɵfac = () => new ComponentClass();
1669 static ɵcmp = defineComponent({
1670 type: ComponentClass,
1671 selectors: [[selector]],
1672 decls: 2,
1673 vars: 0,
1674 dependencies,
1675 consts: [['dir']],
1676 template: (rf: any, ctx: any) => {
1677 if (rf & 1) {
1678 elementStart(0, 'div', 0);
1679 text(1, `${selector} cmp!`);
1680 elementEnd();
1681 }
1682 },
1683 });
1684 }
1685 if (dependencies.length || deferrableDependencies.length) {
1686 setClassMetadataAsync(
1687 ComponentClass,

Callers

nothing calls this directly

Calls 3

elementStartFunction · 0.85
elementEndFunction · 0.85
textFunction · 0.50

Tested by

no test coverage detected