我一直在尝试在LoadingComponent中添加进度指示器(以通知用户应用程序启动期间的数据下载进度).
实例代码:
this.loading = this.loadingController.create({
content: "<progressbar [max]="100" [value]="100" [type]="info></progressbar>"
});
this.loading.present();
Run Code Online (Sandbox Code Playgroud)
问题是Angular 2清洁剂删除了进度条标签,因为(我想)加载内容是在[innerHTML]中注入的.
由于"content"字段只接受字符串,因此我无法绕过Angular 2清理程序(使用DomSanitizer.bypassSecurityTrustHtml).
基本HTML5进度和ng2-boostrap进度条元素都会出现问题.
有谁知道解决方法吗?我错过了什么吗?或者它是一个真正的问题,应该直接在Ionic中修复?