前言
小编最近在做ionic项目的时候,在页面上有这么一个功能,要求上传图片,当然文件也行,但是引用了控件之后,发现前端直接就起来不来,错误描述如下
ERROR Error: Uncaught (in promise): Error: Template parse errors: Can't bind to 'uploader' since it isn't a known property of 'input'. (" <ion-item lines="none"> <input #file type="file" id="file" class="showPicture" ng2FileSelect [ERROR ->][uploader]="uploader" (change)="selectedFileOnChanged(file)"> </ion-item> </ion-list> "): ng:///DailyRecordPageModule/DailyRecordPage.html@42:75 Error: Template parse errors: Can't bind to 'uploader' since it isn't a known property of 'input'. (" <ion-item lines="none"> <input #file type="file" id="file" class="showPicture&