想尝试angular, 但是感觉angular的模板"不够 typescript", 例如官网上的一段template:
<h2>Products</h2>
<div *ngFor="let product of products">
<h3>
{{ product.name }}
</h3>
</div>
单纯看这个模板, 完全看不出来product的类型, 同时typescript和eslint也没能力管控这个模板中的变量。相对的来说, 在react的tsx中, typescript和eslint是能够对变量进行充分的静态分析的。
无意引战, 确实希望试试angular, 可是, 是我使用的姿势不对吗?