TypeScript @angular-core-src-linker-view_utils.inlineInterpolate类(方法)实例源码

下面列出了TypeScript @angular-core-src-linker-view_utils.inlineInterpolate 类(方法)源码代码实例,从而了解它的用法。

作者:JSMik    项目:angula   
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;
   }
 }

作者:AlmogShau    项目:angula   
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;
   }
 }

作者:AlmogShau    项目:angula   
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);
  }


问题


面经


文章

微信
公众号

扫码关注公众号