我有一个应用程序,我有一个上传组件,我可以上传文件.它嵌入在body.component.
body.component
在上传时,它应该使用BodyComponent.thefunction()父组件的一个函数(例如)(执行调用来更新数据):但是只有父元素是特定的body.component.上传也可能在其他地方使用,具有不同的行为.
BodyComponent.thefunction()
有点像parent(this).thefunction(),怎么做?
parent(this).thefunction()
angular
angular ×1