feat(router): mark the index property as deprecated

Use {path: '', component: A} instead of {index: true, component: A}

}#
This commit is contained in:
vsavkin 2016-06-14 16:57:34 -07:00
parent 523fc5536c
commit 3bd0ce291e
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@ import {Type} from '@angular/core';
export type RouterConfig = Route[];
export interface Route {
/**
* Use `path: ''` instead.
* @deprecated
*/
index?: boolean;
path?: string;
terminal?: boolean;