rootScope viewHistory historyId is always showing value as 'root'


#1

Hello, I need to access previous page of app from $rootScope.$viewHistory.

I am using $ionviewservice.goToHistoryRoot() with historyId as parameter. But some how, I am geting "historyId " set to “root” from all my objects.

Any idea how to set “historyId” with unique value?

Thanks.