Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngAfterViewInit(): void {
this._viewInitialized = true;
if (!isBlank(this._titleVisibility)) { this.bottomNavigation.titleVisibility = this._titleVisibility; }
if (!isBlank(this._tabs)) { this.bottomNavigation.tabs = this._tabs; }
if (!isBlank(this._selectedTabIndex)) { this.bottomNavigation.selectedTabIndex = this._selectedTabIndex; }
}
}
ngAfterViewInit(): void {
this._viewInitialized = true;
if (!isBlank(this._titleVisibility)) { this.bottomNavigation.titleVisibility = this._titleVisibility; }
if (!isBlank(this._tabs)) { this.bottomNavigation.tabs = this._tabs; }
if (!isBlank(this._selectedTabIndex)) { this.bottomNavigation.selectedTabIndex = this._selectedTabIndex; }
}
}
ngAfterViewInit(): void {
this._viewInitialized = true;
if (!isBlank(this._titleVisibility)) { this.bottomNavigation.titleVisibility = this._titleVisibility; }
if (!isBlank(this._tabs)) { this.bottomNavigation.tabs = this._tabs; }
if (!isBlank(this._selectedTabIndex)) { this.bottomNavigation.selectedTabIndex = this._selectedTabIndex; }
}
}
ngAfterViewInit(): void {
this._viewInitialized = true;
if (!isBlank(this._interactable)) { this.card.interactable = this._interactable; }
}
}
function convertToInt(value): number {
let normalizedValue;
if (isBlank(value)) {
normalizedValue = 0;
} else {
if (typeof value === 'number') {
normalizedValue = value;
} else {
let parsedValue = parseInt(value.toString(), 10);
normalizedValue = isNaN(parsedValue) ? 0 : parsedValue;
}
}
return Math.round(normalizedValue);
}