在离子加载器中调用$ scope.show时是否可以删除淡入?
参考此处: http://ionicframework.com/docs/api/service/ $ ionicLoading /
答案 0 :(得分:0)
您可以自定义离子加载器。像这样:
$scope.loading = $ionicLoading.show({
content: '<i class="icon ion-loading-c"></i>',
animation: 'fade-in',
showBackdrop: false,
maxWidth: 50,
showDelay: 0
});
.loading {
position: fixed;
top: 50%;
left: 50%;
padding: 20px;
border-radius: 5px;
color: #fff;
text-align: center;
text-overflow: ellipsis;
font-size: 15px; }
.loading h1, .loading h2, .loading h3, .loading h4, .loading h5, .loading h6 {
color: #fff; }