angular - 我想知道哪一个是最常用的模板驱动表单或响应式表单?
问题描述
我是角度方面的新手,并且在模板驱动形式和反应形式之间感到困惑。我只想知道我应该学习哪些最常用的?
解决方案
Request to use Reactive forms. This enable you to write clean template with validation comes in major role. This may help you, the logs from angular.
https://blog.angular-university.io/introduction-to-angular-2-forms-template-driven-vs-model-driven/ https://www.pluralsight.com/guides/difference-between-template-driven-and-reactive-forms-angular
推荐阅读
- android - 在更高 API 级别的 Android 上执行代码的问题
- drupal - Drupal 8 + Lighttpd 一些页面由于 URL 重写而引发 404 错误
- perl - Perl 是否执行返回后出现的代码?功能?
- python - 使用列表推导替换 amxn 数组中的元素
- html - HTML5/Bootstrap 格式 - 没有填充/边距的图像
- python - 根据一些愚蠢的条件将表达式拆分为列表
- sql-server - 使用基于连接的当前节点值从辅助表更新 xml 节点值
- javascript - Typescript、promise 和异步等待混淆
- ios - 使变量等于定时器的 UserDefaults
- javascript - Chrome 扩展:在后台脚本中使用 document.querySelector