123456789101112131415161718192021222324252627
  1. /**
  2. * @license Angular v6.0.9
  3. * (c) 2010-2018 Google, Inc. https://angular.io/
  4. * License: MIT
  5. */
  6. !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@angular/core"),require("@angular/router"),require("@angular/upgrade/static")):"function"==typeof define&&define.amd?define("@angular/router/upgrade",["exports","@angular/core","@angular/router","@angular/upgrade/static"],r):r((e.ng=e.ng||{},e.ng.router=e.ng.router||{},e.ng.router.upgrade={}),e.ng.core,e.ng.router,e.ng.upgrade.static)}(this,function(e,r,t,n){"use strict";
  7. /**
  8. * @license
  9. * Copyright Google Inc. All Rights Reserved.
  10. *
  11. * Use of this source code is governed by an MIT-style license that can be
  12. * found in the LICENSE file at https://angular.io/license
  13. */function o(e){return function(){a(e)}}function a(e){if(!e.$injector)throw new Error("\n RouterUpgradeInitializer can be used only after UpgradeModule.bootstrap has been called.\n Remove RouterUpgradeInitializer and call setUpLocationSync after UpgradeModule.bootstrap.\n ");var r=e.injector.get(t.Router),n=document.createElement("a");e.$injector.get("$rootScope").$on("$locationChangeStart",function(e,t,o){n.href=t,r.navigateByUrl(n.pathname+n.search+n.hash)})}
  14. /**
  15. * @license
  16. * Copyright Google Inc. All Rights Reserved.
  17. *
  18. * Use of this source code is governed by an MIT-style license that can be
  19. * found in the LICENSE file at https://angular.io/license
  20. */
  21. /**
  22. * @license
  23. * Copyright Google Inc. All Rights Reserved.
  24. *
  25. * Use of this source code is governed by an MIT-style license that can be
  26. * found in the LICENSE file at https://angular.io/license
  27. */e.RouterUpgradeInitializer={provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:o,deps:[n.UpgradeModule]},e.locationSyncBootstrapListener=o,e.setUpLocationSync=a,Object.defineProperty(e,"__esModule",{value:!0})});