当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript view_utils.inlineInterpolate函数代码示例

本文整理汇总了TypeScript中@angular/core/src/linker/view_utils.inlineInterpolate函数的典型用法代码示例。如果您正苦于以下问题:TypeScript inlineInterpolate函数的具体用法?TypeScript inlineInterpolate怎么用?TypeScript inlineInterpolate使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了inlineInterpolate函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: detectChangesInternal

 detectChangesInternal(throwOnChange: boolean): void {
   const currVal_0: any = ((this.context.data.depth % 2) ? '' : 'grey');
   if (checkBinding(throwOnChange, this._expr_0, currVal_0)) {
     this._el_0.style.backgroundColor = currVal_0;
     this._expr_0 = currVal_0;
   }
   const currVal_1: any = import4.inlineInterpolate(1, ' ', this.context.data.value, ' ');
   if (checkBinding(throwOnChange, this._expr_1, currVal_1)) {
     this._text_1.nodeValue = currVal_1;
     this._expr_1 = currVal_1;
   }
 }
开发者ID:JSMike,项目名称:angular,代码行数:12,代码来源:tree_leaf.ngfactory.ts

示例2: detectChangesInternal

 detectChangesInternal(throwOnChange: boolean): void {
   this._NgIf_2_6.updateNgIf(throwOnChange, (this.context.data.right != (null as any)));
   this._NgIf_3_6.updateNgIf(throwOnChange, (this.context.data.left != (null as any)));
   this._vc_2.detectChangesInternal(throwOnChange);
   this._vc_3.detectChangesInternal(throwOnChange);
   const currVal_0: any = ((this.context.data.depth % 2) ? '' : 'grey');
   if (import4.checkBinding(throwOnChange, this._expr_0, currVal_0)) {
     this._el_0.style.backgroundColor = currVal_0;
     this._expr_0 = currVal_0;
   }
   const currVal_1: any = import4.inlineInterpolate(1, ' ', this.context.data.value, ' ');
   if (import4.checkBinding(throwOnChange, this._expr_1, currVal_1)) {
     this._text_1.nodeValue = currVal_1;
     this._expr_1 = currVal_1;
   }
 }
开发者ID:AlmogShaul,项目名称:angular,代码行数:16,代码来源:tree.ngfactory.ts

示例3: detectChangesInternal

  detectChangesInternal(throwOnChange: boolean): void {
    this._TreeComponent20_2_4View.updateData(this.context.data.right);
    this._TreeComponent20_3_4View.updateData(this.context.data.left);

    const currVal_0: any = ((this.context.data.depth % 2) ? '' : 'grey');
    if (import4.checkBinding(throwOnChange, this._expr_0, currVal_0)) {
      this._el_0.style.backgroundColor = currVal_0;
      this._expr_0 = currVal_0;
    }
    const currVal_1: any = import4.inlineInterpolate(1, ' ', this.context.data.value, ' ');
    if (import4.checkBinding(throwOnChange, this._expr_1, currVal_1)) {
      this._text_1.nodeValue = currVal_1;
      this._expr_1 = currVal_1;
    }
    this._TreeComponent20_2_4View.detectChangesInternal(throwOnChange);
    this._TreeComponent20_3_4View.detectChangesInternal(throwOnChange);
  }
开发者ID:AlmogShaul,项目名称:angular,代码行数:17,代码来源:tree_branch.ngfactory.ts


注:本文中的@angular/core/src/linker/view_utils.inlineInterpolate函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。