angular - "Expected operands to be a string or number type" Angular

标签 angular visual-studio-code

在 VS Code 中,我收到此警告!

"Expected operands to be a string or number type"

enter image description here

contentType 是一个字符串

当我删除“数据:”时一切正常

最佳答案

好的方法是:

src="data:{{ event.eventObj.eventImageNavigation.contentType }};base64,{{ event.eventObj.eventImageNavigation.data }}"

关于angular - "Expected operands to be a string or number type" Angular ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56417073/

相关文章:

javascript - 将 ng2-chart Canvas 导出为 png 图像

angular - 如何以正常方式和 Angular Material 对话框使用相同的组件?

visual-studio-code - 使用 12 GB 内存运行 Dart

node.js - 无法启动 VS Code,出现未捕获的异常

javascript - JSDoc 在对象的属性上描述函数的参数

Python Docker 远程调试 VS Code

Angular : Using pipe inside ts not in html

Angular2 旧表单模块警告

Angular CLI 为已经存在的组件创建 .spec 文件

visual-studio-code - 无法在 angular-cli.json 文件上获得智能感知