We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
substr
substring
1 parent d5edc74 commit caa252eCopy full SHA for caa252e
modules/angular2/src/router/hash_location_strategy.ts
@@ -23,7 +23,7 @@ export class HashLocationStrategy extends LocationStrategy {
23
path(): string {
24
// the hash value is always prefixed with a `#`
25
// and if it is empty then it will stay empty
26
- return this._location.hash.substr(1);
+ return this._location.hash.substring(1);
27
}
28
29
pushState(state: any, title: string, url: string) {
0 commit comments