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

@ -15,19 +15,19 @@ export class MenuButton {
private custom = true;
@Prop({ context: 'config' }) config: Config;
@Prop({ context: 'config' }) config!: Config;
/**
* Optional property that maps to a Menu's `menuId` prop. Can also be `left` or `right` for the menu side. This is used to find the correct menu to toggle
*/
@Prop() menu: string;
@Prop() menu?: string;
/**
* Automatically hides the menu button when the corresponding menu is not active
*/
@Prop() autoHide = true;
@Element() el: HTMLElement;
@Element() el!: HTMLElement;
componentWillLoad() {
this.custom = this.el.childElementCount > 0;