Routing issue from Wizard tab page to normal page

70 Views Asked by At

i am getting a problem when i am trying to get back from wizard tab page to normal page whose url are competely differnt.My first page url is like localhost:8080/#/firstpage?aparam=#abcd&bparam=45564.Then my second page will have four wizard tabs A,B,C,D with back and continue buttons.I wrote a logic for second page to go to first page using "Back" button in first A tab like

if(tab0ne==true){
    $scope.tabone=false;
    $state.go('firstpage')
}

For refreshing logic i defined $rootScope==undefined when i refresh and reload the second wizard page and then click back button then its displaying the same localhost:8080/#/secondpage even though its entering into that if block its not changing to first page.Please let me know if any one know the solution for this problem

0

There are 0 best solutions below