Skip to content

Commit fb2773b

Browse files
committed
docs(router): fix wording of hashchange explanation
Closes angular#7776
1 parent 5110121 commit fb2773b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/angular2/src/router/router.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,9 +489,11 @@ export class RootRouter extends Router {
489489
emitPath = '/' + emitPath;
490490
}
491491

492-
// Because we've opted to use All hashchange events occur outside Angular.
492+
// We've opted to use pushstate and popState APIs regardless of whether you
493+
// an app uses HashLocationStrategy or PathLocationStrategy.
493494
// However, apps that are migrating might have hash links that operate outside
494495
// angular to which routing must respond.
496+
// Therefore we know that all hashchange events occur outside Angular.
495497
// To support these cases where we respond to hashchanges and redirect as a
496498
// result, we need to replace the top item on the stack.
497499
if (change['type'] == 'hashchange') {

0 commit comments

Comments
 (0)