refresh eingebaut

This commit is contained in:
Hilmer, Carsten 2016-09-15 16:16:59 +02:00
parent 6b627d50f9
commit 73b15d2999

View File

@ -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);
}); });