MCPcopy Create free account
hub / github.com/angular/components / ngOnInit

Method ngOnInit

src/dev-app/example/example.ts:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 title!: string;
77
78 async ngOnInit() {
79 this.title = EXAMPLE_COMPONENTS[this.id].title;
80
81 const example = await loadExample(this.id, this._injector);
82 this._viewContainerRef.createComponent(example.component, {injector: example.injector});
83 this._changeDetectorRef.markForCheck();
84 }
85}

Callers

nothing calls this directly

Calls 2

loadExampleFunction · 0.90
markForCheckMethod · 0.80

Tested by

no test coverage detected