feat(router): mark the index property as deprecated
Use {path: '', component: A} instead of {index: true, component: A}
}#
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user