Tuesday, 15 March 2011

javascript - AngularJS history manipulation -



javascript - AngularJS history manipulation -

normally javascript can utilize next manipulate history, not work. example: want accomplish go /clients/:id , when go back, want go /blog/, doesn't matter page on before.

$scope.changeview = function(clientid){ history.pushstate({}, null, '/#/blog'); $location.path('/client/' + clientid); };

however, not work in angular.

any thought how solved?

as confused question is.. (are trying find angular way of manipulating history? or trying redirect?)

something may of involvement $location service on angularjs.

i used history.pushstate(), null, '/aboutus') while on page within app, clicked link, went , seemed load '/aboutus' link fine, long angular app configured route path somewhere.

javascript angularjs

No comments:

Post a Comment