Javascript 未在ngCordova.js中定义ProgressIndicator

Javascript 未在ngCordova.js中定义ProgressIndicator,javascript,ionic-framework,cordova-plugins,ionic,Javascript,Ionic Framework,Cordova Plugins,Ionic,ReferenceError:未定义ProgressIndicator 在ngCordova中显示此错误 $ionicPlatform.ready(function() { $cordovaProgress.showSuccess(true, "Success!"); $timeout(function() { $cordovaProgress.hide(); }, 2000); }); 代码示例是这样编写的。它称之为$cordovaProgres

ReferenceError:未定义ProgressIndicator

在ngCordova中显示此错误

  $ionicPlatform.ready(function() {
    $cordovaProgress.showSuccess(true, "Success!");

    $timeout(function() {
      $cordovaProgress.hide();
    }, 2000);
  });
代码示例是这样编写的。它称之为$cordovaProgress


有人能帮忙解决吗?

您没有插入插件。通过相应类的控制器注入。:)

找到答案:该代码仅在移动设备上有效。请在此处发布您的答案