mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
refactor(all): enable strictPropertyInitialization
This commit is contained in:
@ -18,17 +18,17 @@ export class Route {
|
||||
* The value of this property is not always the tagname of the component to load,
|
||||
* in ion-tabs it actually refers to the name of the `ion-tab` to select.
|
||||
*/
|
||||
@Prop() component: string;
|
||||
@Prop() component!: string;
|
||||
|
||||
/**
|
||||
* Props to pass when the `component` specified in this route load.
|
||||
*/
|
||||
@Prop() componentProps: {[key: string]: any};
|
||||
@Prop() componentProps?: {[key: string]: any};
|
||||
|
||||
/**
|
||||
* Used internaly by `ion-router` to know when this route did change.
|
||||
*/
|
||||
@Event() ionRouteDataChanged: EventEmitter<any>;
|
||||
@Event() ionRouteDataChanged!: EventEmitter<any>;
|
||||
|
||||
@Watch('url')
|
||||
@Watch('component')
|
||||
|
||||
Reference in New Issue
Block a user