mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
refactor(all): enable strictPropertyInitialization
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user