chore(router): change `substr` to `substring`

This commit is contained in:
Matias Niemelä 2015-07-08 15:46:20 -07:00
parent d5edc748d2
commit caa252e57b
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ export class HashLocationStrategy extends LocationStrategy {
path(): string { path(): string {
// the hash value is always prefixed with a `#` // the hash value is always prefixed with a `#`
// and if it is empty then it will stay empty // 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) { pushState(state: any, title: string, url: string) {