I am using ionic framework. here is my app.js
.state('app.articlelist,{
cache:false,
url:"",
and so on..
)
and controller file
.controller('ArticleCtrl',function($scope,getArticle){
alert("Controller runs");
getArticle.getAriclefromDb().then(function(res){
alert("hello test");
});
});
Which is working fine .
Now i have closed my app and also its process.
Now Second time getArticle.getAriclefromDb().then(function(res){
function doesn't runs.
but second time i am able to see alert Controller runs and first time i am able to see both alerts.
Any idea? why this is happening ?
Thanks