关闭应用程序作为进程不会运行进程

时间:2015-06-02 12:42:59

标签: ios angularjs ionic-framework ionic

我正在使用离子框架。这是我的 app.js

.state('app.articlelist,{
   cache:false,
   url:"",
and so on..
)

和控制器文件

.controller('ArticleCtrl',function($scope,getArticle){
  alert("Controller runs");
    getArticle.getAriclefromDb().then(function(res){
      alert("hello test");
   });
});

哪个工作正常。

现在我关闭了我的应用程序以及它的过程。

现在第二次getArticle.getAriclefromDb().then(function(res){函数没有运行。

但第二次我能看到警报控制器运行,并且我第一次看到这两个警报。

有什么想法吗?为什么会这样?

由于

0 个答案:

没有答案