angular - 如何使角度打字稿功能在html元素中工作
问题描述
解决方案
使用点击事件<a routerLink="/comment" (click)="comment()">comment</a>
推荐阅读
- javascript - 如何在多选 Kendo UI 下拉列表中选择所有选项?
- java - 如何在 RxJava 中正确使用 observable 和 observer?
- soapui - 苏维5.6。java.lang.UnsupportedClassVersionError:
- azure - InvalidXmlDocument: XML specified is not syntactically valid
- python - 在直方图中绘制成对的 bin 以与 seaborn 进行比较
- foreach - 如何在页面视图页面之间传输数据swiftui
- c++ - 更新到 VS 2019 16.11.1 后没有自动构建 QT Cmake 项目
- c# - 当实际的泛型返回类型是方法定义的返回类型的子类时,如何返回泛型?
- powershell - 用于删除或存档旧日志文件的 PowerShell 脚本在本地运行良好,但在远程位置无法运行
- algorithm - 查找未排序数组的最小值和最大值的算法