📜  ngmodel 组件 angular - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:17.140000             🧑  作者: Mango

代码示例2
NgModel expects the bound element to have a value property, which div s don't have. That's why you get the No value accessor error. I don't know if the input event is supported on all browsers for contenteditable . You could always bind to some keyboard event instead.