From caa252e57b3400a3d0eb5a4fd219d7559ca8b128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matias=20Niemel=C3=A4?= Date: Wed, 8 Jul 2015 15:46:20 -0700 Subject: [PATCH] chore(router): change `substr` to `substring` --- modules/angular2/src/router/hash_location_strategy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/router/hash_location_strategy.ts b/modules/angular2/src/router/hash_location_strategy.ts index ffa4da7276..09c58516c0 100644 --- a/modules/angular2/src/router/hash_location_strategy.ts +++ b/modules/angular2/src/router/hash_location_strategy.ts @@ -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) {