angular - 如何像以前在 Ionic 3 中一样在 Ionic 4 中的 Loading 中使用 FontAwsome 图标?
问题描述
我有一项服务只是在屏幕上显示/隐藏加载。
我需要的是使用 Fontawsome 图标而不是 ionic 图标。
我试过了:
show(message ? : string) : void {
this.isLoading = true;
this.loader = this.loadingController.create({
spinner: null,
message: "<fa-icon icon='spinner' pulse='true' ></fa-icon>",
translucent: true,
showBackdrop: true,
animated: true,
keyboardClose: true
});
this.loader.then((a: any) => {
a.present().then(() => {
if (!this.isLoading) {
a.dismiss().then(() => console.log('aborting...'));
}
});
});
}
我能做些什么?
解决方案
推荐阅读
- python - 你可以在不使用 linux 终端的情况下执行 python 文件吗?
- java - 如何在 GCP 上从 Java 代码执行 shell 命令
- python - 访问数据库时出现错误
- react-native - 如何处理反应导航自定义标题返回按钮
- python - 从具有匹配条件的集合中移除项目
- node.js - 通过 Codepipeline 在 Docker 上部署 Beanstalk 未完成
- php - 找不到方法商店和帖子 [LARAVEL]
- r - 使用 ggplot 在 R 中创建漂亮的叠加直方图
- javascript - 监听输入时按下的特定键 - ReactJS
- laravel - 如何在显示 laravel 视图中使用 Yajra 创建数据表?