我用到了InputItem标签, 然后用到该标签自带的属性content, 也是按照原文档写的代码:
<div class="am-list" style="margin:0;">
<div class="am-list-header">Custom title(text / image / empty)</div>
<div class="am-list-body">
<InputItem [placeholder]="'no label'"></InputItem>
<InputItem [placeholder]="'title can be icon,image or text'" [content]="content">
<ng-template #content>
<div
style="background-image:url(https://zos.alipayobjects.com/rmsportal/DfkJHaJGgMghpXdqNaKF.png); background-size:cover;height:22px; width: 22px "
></div>
</ng-template>
</InputItem>
</div>
</div>
但是报错: Can't bind to 'content' since it isn't a known property of 'InputItem' ,这是为什么呢### 问题描述
问题出现的环境背景及自己尝试过哪些方法
相关代码
// 请把代码文本粘贴到下方(请勿用图片代替代码)