MCPcopy Index your code
hub / github.com/angular/angular / ComponentClass

Class ComponentClass

packages/core/test/test_bed_spec.ts:1686–1703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1684 deferrableDependencies: Array<Type<unknown>> = [],
1685 ) => {
1686 class ComponentClass {
1687 static ɵfac = () => new ComponentClass();
1688 static ɵcmp = defineComponent({
1689 type: ComponentClass,
1690 selectors: [[selector]],
1691 decls: 2,
1692 vars: 0,
1693 dependencies,
1694 consts: [['dir']],
1695 template: (rf: any, ctx: any) => {
1696 if (rf & 1) {
1697 elementStart(0, 'div', 0);
1698 text(1, `${selector} cmp!`);
1699 elementEnd();
1700 }
1701 },
1702 });
1703 }
1704 if (dependencies.length || deferrableDependencies.length) {
1705 setClassMetadataAsync(
1706 ComponentClass,

Callers

nothing calls this directly

Calls 3

elementStartFunction · 0.85
elementEndFunction · 0.85
textFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…