【发布时间】:2018-01-18 18:32:23
【问题描述】:
我能否以某种方式从parent.component.ts 设置子组件的@Output() 属性,而不必在其HTML 文件中写入(something)="doSmething()"?我需要这个用于动态组件。
也许ContentChildren、ViewChildren、ViewContainerRef 或EmbeddedViewRef 带有选择器?
【问题讨论】:
-
你能用更多信息解释你的问题吗
标签: angular