本文整理汇总了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;
}
}