ElasticUI
ElasticUI copied to clipboard
change indexVM.page in controlle
hello,
is it possible to change the indexVM.page within the controller? I would like to jump to a certain page using the route. Is that possible?
Any help is appreciated Bernd
You should first find the $scope of indexVM and then :
$scope.$parent.indexVM.page = NUMBER_OF_YOUR_PAGE;
According to your message, you should use $routeParams to guess NUMBER_OF_YOUR_PAGE.