refresh eingebaut
This commit is contained in:
parent
6b627d50f9
commit
73b15d2999
@ -100,7 +100,19 @@ appControllers.controller('pokemonListCtrl', function ($scope, $stateParams,$ion
|
|||||||
$scope.controllersettings = $stateParams.controllersettings;
|
$scope.controllersettings = $stateParams.controllersettings;
|
||||||
if ($scope.controllersettings.refresh=='1'){
|
if ($scope.controllersettings.refresh=='1'){
|
||||||
console.log("refreshed");
|
console.log("refreshed");
|
||||||
//$scope.initialForm();
|
$scope.getPokemonList();
|
||||||
|
$timeout(function(){
|
||||||
|
$state.go('app.pokemonlist',
|
||||||
|
{
|
||||||
|
isAnimated:false,
|
||||||
|
controllersettings:
|
||||||
|
{
|
||||||
|
test:'Laola',
|
||||||
|
refresh:'0'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
},400);
|
||||||
}
|
}
|
||||||
console.debug($scope.controllersettings);
|
console.debug($scope.controllersettings);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user