mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
fix(angular): lint issue
This commit is contained in:
@ -77,6 +77,9 @@ export class TabButton implements ComponentInterface {
|
||||
if (this.layout === undefined) {
|
||||
this.layout = this.config.get('tabButtonLayout', 'icon-top');
|
||||
}
|
||||
if (isNotDefined(this.tab)) {
|
||||
console.error('Missing "tab" property in <ion-tab-button>');
|
||||
}
|
||||
}
|
||||
|
||||
private get hasLabel() {
|
||||
@ -117,3 +120,7 @@ export class TabButton implements ComponentInterface {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function isNotDefined(a: any) {
|
||||
return a == null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user