refactor(Router): idiomatic TS

This commit is contained in:
Victor Berchet
2015-06-29 10:37:55 +02:00
parent eea989bef8
commit 1f04f70eda
7 changed files with 29 additions and 53 deletions

View File

@ -29,9 +29,7 @@ import {Injectable} from 'angular2/di';
*/
@Injectable()
export class RouteRegistry {
_rules: Map<any, RouteRecognizer>;
constructor() { this._rules = new Map(); }
_rules: Map<any, RouteRecognizer> = new Map();
/**
* Given a component and a configuration object, add the route to this registry