Ion-infinite showing the first 10 post again on first scroll down


#1

i am trying to make an app for my wordpress blog…
i have a problem in ion infinite
whenever i am pulling up to get more content from site
it always show the first 10 post agian
it means first 10 post are visible twise
one time before pulling and 2nd time after pulling

template

controller
$scope.recent_posts.push.apply($scope.recent_posts, newPosts);
$scope.$broadcast(“scroll.infiniteScrollComplete”);
$scope.offset += 10;

and i have one more problem the post detail page when i click on my post on my index page it is not redirecting to post page to show post content

could anyone help me plesre