We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5110121 commit fb2773bCopy full SHA for fb2773b
1 file changed
modules/angular2/src/router/router.ts
@@ -489,9 +489,11 @@ export class RootRouter extends Router {
489
emitPath = '/' + emitPath;
490
}
491
492
- // Because we've opted to use All hashchange events occur outside Angular.
+ // We've opted to use pushstate and popState APIs regardless of whether you
493
+ // an app uses HashLocationStrategy or PathLocationStrategy.
494
// However, apps that are migrating might have hash links that operate outside
495
// angular to which routing must respond.
496
+ // Therefore we know that all hashchange events occur outside Angular.
497
// To support these cases where we respond to hashchanges and redirect as a
498
// result, we need to replace the top item on the stack.
499
if (change['type'] == 'hashchange') {
0 commit comments