双向数据绑定

看看Name的<input>标签,你会看到[(ngModel)]="model.name"的用法。

[()]表示:这里使用了双向绑定。

[]表示:数据从Model流向View

()表示:数据从View流向Model

 

相关文章:

  • 2022-12-23
  • 2021-10-26
  • 2021-12-24
  • 2021-06-20
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-12-03
相关资源
相似解决方案