标签: angular
我有一个下拉列表作为子组件。
当我使用@Input() dropdownItems: KeyValue,string, string>从父级更新子级组件时,此方法工作正常。但是,如果我还在子组件中使用valueChanges为dropdownItems分配值,那么我的父级将不再更新子项。
@Input() dropdownItems: KeyValue,string, string>
dropdownItems
孩子也不能像父母一样更新自己的值吗?