使用双向绑定代替字符串插值来填充文本区域,这样用户编辑后仍可正确显示。
示例代码:
component.ts:
export class AppComponent { textareaText = "my initial text"; }
component.html:
上一篇:Angular10-MIME类型不受支持问题
下一篇:Angular10-Thetargetentry-pointhasmissingdependencies: