refactor(all): enable strictPropertyInitialization

This commit is contained in:
Manu Mtz.-Almeida
2018-04-19 18:48:38 +02:00
parent 78bd146ad2
commit 4ea8881f33
129 changed files with 1513 additions and 1664 deletions

View File

@ -7,16 +7,15 @@ import { NavComponent } from '../nav/nav-util';
})
export class NavSetRoot {
@Element() el: HTMLElement;
@Prop() component: NavComponent;
@Prop() componentProps: ComponentProps;
@Prop() url: string;
@Element() el!: HTMLElement;
@Prop() component?: NavComponent;
@Prop() componentProps?: ComponentProps;
@Listen('child:click')
push(): Promise<any> {
const nav = this.el.closest('ion-nav');
if (nav) {
const toPush = this.url || this.component;
const toPush = this.component;
if (nav && toPush) {
return nav.setRoot(toPush, this.componentProps);
}
return Promise.resolve(null);

View File

@ -17,11 +17,6 @@ string
#### url
string
## Attributes
#### component
@ -34,11 +29,6 @@ string
#### url
string
----------------------------------------------