本文整理匯總了TypeScript中@angular/core/src/facade/lang.isBlank函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript isBlank函數的具體用法?TypeScript isBlank怎麽用?TypeScript isBlank使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了isBlank函數的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: get
get(panelBodyObj:Object) {
let _search = (!isBlank(panelBodyObj['search'])) ? panelBodyObj['search'] : AtexoRestConstant.request.panel.all.parameter;
let _header = (!isBlank(panelBodyObj['header'])) ? panelBodyObj['header'] : AtexoRestConstant.request.panel.all.header;
var options = new RequestOptions({
method: AtexoRestConstant.request.alert.all.method,
headers: Util.getInstance().RequestHeader().setHeaderParams(_header),
url: panelBodyObj['urlData'],
search: Util.getInstance().RequestOptions().setSearchParams(_search)
});
var req = new Request(options);
return this.http.request(req);
}
示例2: ngAfterViewInit
ngAfterViewInit() {
this.viewInitialized = true;
rendererLog("this._selectedIndex: " + this._selectedIndex);
if (!isBlank(this._selectedIndex)) {
this.tabView.selectedIndex = this._selectedIndex;
}
}
示例3: transform
transform(value) {
if (isBlank(value)) return value;
if (!isString(value)) {
throw new InvalidPipeArgumentException(JsonPointerEscapePipe, value);
}
return JsonPointer.escape(value);
}
示例4: check
public static check(control: AbstractControl): boolean {
if (isBlank(control.value) || (isString(control.value) && control.value.trim() === '')) {
return false;
}
return true;
}
示例5: getParamOrData
private getParamOrData(key: string, params: RouteParams, data: RouteData) {
let result = params.get(key);
if (!isBlank(result)) {
return result;
} else {
return data.get(key);
}
}
示例6: ngAfterViewInit
ngAfterViewInit() {
this.viewInitialized = true;
debugger;
console.log("this._selectedIndex: " + this._selectedIndex);
if (!isBlank(this._selectedIndex)) {
this.tabView.selectedIndex = this._selectedIndex;
}
}