feat(router): mark the index property as deprecated
Use {path: '', component: A} instead of {index: true, component: A} }#
This commit is contained in:
parent
523fc5536c
commit
3bd0ce291e
@ -3,6 +3,10 @@ import {Type} from '@angular/core';
|
|||||||
export type RouterConfig = Route[];
|
export type RouterConfig = Route[];
|
||||||
|
|
||||||
export interface Route {
|
export interface Route {
|
||||||
|
/**
|
||||||
|
* Use `path: ''` instead.
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
index?: boolean;
|
index?: boolean;
|
||||||
path?: string;
|
path?: string;
|
||||||
terminal?: boolean;
|
terminal?: boolean;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user