-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
need docThat issue should be shown in documentationThat issue should be shown in documentationresolvedThat issue was resolvedThat issue was resolved
Description
Hi,
Given the following:
@Component({
selector: 'my-app',
templateUrl: './app.component.html',
styleUrls: [ './app.component.css' ]
})
export class AppComponent {
name = 'Angular 6';
component = DynamicComponent;
onClick($event) {
alert($event);
}
}
How do I access the instance of the DynamicComponent to set a property?
Attempting access in a @ViewChild() does not seem to work.
NB. I note that the docs state that there is access to the component? I can't seem to get it though
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
need docThat issue should be shown in documentationThat issue should be shown in documentationresolvedThat issue was resolvedThat issue was resolved