[英]Angular 2 template data binding by value or reference
If a parent component passing an object to a child component 如果父组件将对象传递给子组件
<child-component [someValue]="someObject"></child-component>
If the child component modify the someObject
, will this change be reflected in the parent component? 如果子组件修改
someObject
,此更改是否会反映在父组件中?
number
, string
, boolean
number
, string
, boolean
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.