How to destroy the active page in ionic?


#1

I have the problem about how to access or load my playlists like this…


after i access this…

i want after i click “Buat Akun Baru”. I back to Playlist and myhistory in “Buat Akun Baru” page is clear.
If i use $scope.go(app.playlists), i can back again to “Buat Akun Baru” page and my history still exist.


#2

Hi,
Use ionicHistory . Clear the cache view of your playlist.

$scope.$on("$ionicView.afterLeave", function(scopes, states){
$ionicHistory.clearCache();
});


#3

how to declare that in controllers.js?i’m still newbie sir, maybe you can give me sample ?


#4

trying to understand here, u want to create a data and put it at playlist right?