How to remove animation when you come back to view by back button?


#1

I have a list view and I button to jump to specific category in my list. I implemented it with the next code

this.$location.hash(`cat-${selected.id}`);
this.popover.hide();
this.$ionicScrollDelegate.anchorScroll(true);

It works perfectly!
But when I switch my view to another and then click on back button, as a result I see again a scroll animation to specififc category, I like this fact that I can return to previous state , but how can I turn off this animation?

Ionic version: 1.3.2
Platform: iOS 10


#2

Any suggestions guys? I feel like I lost in space I tried to take a look at source code of $ionicScrollDelegate but unfortunately I found only a kind of interface of it.