去除离子加载器中的淡入

时间:2016-06-15 23:13:39

标签: ionic-framework

在离子加载器中调用$ scope.show时是否可以删除淡入?

参考此处: http://ionicframework.com/docs/api/service/ $ ionicLoading /

1 个答案:

答案 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; }