How to destroy the active page in ionic?


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.


Use ionicHistory . Clear the cache view of your playlist.

$scope.$on("$ionicView.afterLeave", function(scopes, states){


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


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