mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
chore(router): change substr to substring
This commit is contained in:
parent
d5edc748d2
commit
caa252e57b
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export class HashLocationStrategy extends LocationStrategy {
|
|||
path(): string {
|
||||
// the hash value is always prefixed with a `#`
|
||||
// and if it is empty then it will stay empty
|
||||
return this._location.hash.substr(1);
|
||||
return this._location.hash.substring(1);
|
||||
}
|
||||
|
||||
pushState(state: any, title: string, url: string) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue