docs(router): fix wording of hashchange explanation

Closes #7776
This commit is contained in:
Brian Ford 2016-03-25 16:45:32 -07:00
parent 5110121f6e
commit fb2773b8f3
1 changed files with 3 additions and 1 deletions

View File

@ -489,9 +489,11 @@ export class RootRouter extends Router {
emitPath = '/' + emitPath;
}
// 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
// an app uses HashLocationStrategy or PathLocationStrategy.
// However, apps that are migrating might have hash links that operate outside
// angular to which routing must respond.
// Therefore we know that all hashchange events occur outside Angular.
// To support these cases where we respond to hashchanges and redirect as a
// result, we need to replace the top item on the stack.
if (change['type'] == 'hashchange') {