Ultimately, I tried to write a chrome extension that implements an angular application inside an iframe, but found that all the hash changes interfered with the Chrome history because the iframe source was constantly changing due to routing changes.
, ui-router angular, (, ui-router URL-, ), , iframe iframe : window.location. .
, , iframe Chrome:
- src iframe '#'
- iframe
- iframe frame location.replace :
$("#myIframe").get(0).contentWindow.location.replace(myUrl);
- iframe URL-
location.replace(url) - angular :
$location.path(newPath).replace(), angular .
, $location.replace() , . , : location.replace iframe .