How to use the nativescript-angular/lang-facade.isBlank function in nativescript-angular

To help you get started, we’ve selected a few nativescript-angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github charsleysa / nativescript-mdc / src / components / bottomNavigation / angular / directives.ts View on Github external
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; }
    }
}
github charsleysa / nativescript-mdc / src / components / bottomNavigation / angular / directives.ts View on Github external
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; }
    }
}
github charsleysa / nativescript-mdc / src / components / bottomNavigation / angular / directives.ts View on Github external
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; }
    }
}
github charsleysa / nativescript-mdc / src / components / cardView / angular / directives.ts View on Github external
ngAfterViewInit(): void {
        this._viewInitialized = true;
        if (!isBlank(this._interactable)) { this.card.interactable = this._interactable; }
    }
}
github nstudio / nativescript-checkbox / src / angular / index.ts View on Github external
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);
}