history.pushState not working in controller history.pushState not working in controller angularjs angularjs

history.pushState not working in controller


year a go i was struggling with this problem and now i understand it. its not how angular works. i should of used ngRoute module to provide navigations. its not about the pushstate not working or something else, its about how angular works.

i don't need $scope.GoToNext or $scope.GoToPrev for navigating because angular would do it for me automatically. just change the route and its done. everything works fine.


pushState is inconsistently supported on various browser platforms. Try History.js instead.