.state('state1'
{
    name :
    url:
    data:{
      data1=[];
      data2=[];
     }
});
.state('state2'
{
    name :
    url:
    data:{
      data1=[];
      data2=[];
    }
});
Let us say I have n number of states.When user goes from one state to another
he is storing data into $state.current.data.
My question is , "is there any shortcut or any technique to reset the data for all the states again", let us say for the scenario when user logs out from the application , I want to reset the data .
I don't want to use $window.location.reload()
Any suggestions/help is appreciated!!
Thanks
 
     
    