我正在尝试绑定我的输入,该输入是包含 html 内容的字符串。
app.component.ts 有“内容”变量
content : string = "<p>This is my editable data.</p><p>Two way binding is not getting applied on it.</p>
public validateProfile(content){
console.log(content);
}
contentNew: string;
content : string = "<p>This is my editable data.</p><p>Two way binding is not getting applied on it.</p>";
public validateProfile(content){
this.contentNew = content;
console.log(content);
}