I’m stuck here and i really need help.
I’m using many separated factories and controllers because i need them separated but, how can i invoke controller from ionic-refresh directive.
Example, i have this factory:
.factory('dataTest', function($http){
return {
get: function(){
return $http.get('http://get')
.then(
function(result){
return result.data;
}
);
}
}
});
and controller:
.controller('testCtrl',['$scope', 'dataTest',
function ($scope, currentSea){
dataTest.get().then(function(data){
...
}
Now how can i refresh data with ionic? Which by the way shoud refresh other 3 diffrenet controllers.
Thanks in advance.