Angular将字符串输出为HTML字符串
vue:
<div v-html=""newData.Contents"></div>
anuglar:
<div [innerHTML]="newData.Contents">
</div>
Angular属性绑定参考:
https://angular.cn/guide/template-syntax#属性绑定--属性名-
Angular将字符串输出为HTML字符串
vue:
<div v-html=""newData.Contents"></div>
anuglar:
<div [innerHTML]="newData.Contents">
</div>
Angular属性绑定参考:
https://angular.cn/guide/template-syntax#属性绑定--属性名-