feat($location): add support for History API state handling
Adds $location state method allowing to get/set a History API state via pushState & replaceState methods. Note that: - Angular treats states undefined and null as the same; trying to change one to the other without touching the URL won't do anything. This is necessary to prevent infinite digest loops when setting the URL to itself in IE<10 in the HTML5 hash fallback mode. - The state() method is not compatible with browsers not supporting the HTML5 History API, e.g. IE 9 or Android < 4.0. Closes #9027
M
Michał Gołębiowski committed
6fd36deed954b338e48390862971d465148dc1f2
Parent: 8ee1ba4
Committed by Igor Minar <igor@angularjs.org>
on 10/7/2014, 10:48:10 PM