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

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

作者:jthoms    项目:ionic2-webpack2-ao   
detectChangesInternal(throwOnChange:boolean):void {
   this.detectContentChildrenChanges(throwOnChange);
   if (!throwOnChange) {
     if (this._query_Button_0_1.dirty) {
       this._query_Button_0_1.reset([]);
       this._Item_0_5._buttons = this._query_Button_0_1;
       this._query_Button_0_1.notifyOnChanges();
     }
     if (this._query_Icon_0_2.dirty) {
       this._query_Icon_0_2.reset([]);
       this._Item_0_5._icons = this._query_Icon_0_2;
       this._query_Icon_0_2.notifyOnChanges();
     }
     if ((this.numberOfChecks === 0)) { this._Item_0_5.ngAfterContentInit(); }
   }
   const currVal_0:any = this.context.$implicit.fontSize;
   if (import69.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this.renderer.setElementStyle(this._el_2,'fontSize',((this.viewUtils.sanitizer.sanitize(import91.SecurityContext.STYLE,currVal_0) == null)? null: this.viewUtils.sanitizer.sanitize(import91.SecurityContext.STYLE,currVal_0).toString()));
     this._expr_0 = currVal_0;
   }
   const currVal_1:any = import69.interpolate(1,'',this.context.$implicit.item,'');
   if (import69.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
     this.renderer.setText(this._text_3,currVal_1);
     this._expr_1 = currVal_1;
   }
   this.detectViewChildrenChanges(throwOnChange);
 }

作者:jthoms    项目:ionic2-webpack2-ao   
detectChangesInternal(throwOnChange:boolean):void {
   var changes:{[key: string]:import71.SimpleChange} = null;
   changes = null;
   const currVal_1:any = this.context.$implicit.items;
   if (import69.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
     this._NgFor_5_6.ngForOf = currVal_1;
     if ((changes === null)) { (changes = {}); }
     changes['ngForOf'] = new import71.SimpleChange(this._expr_1,currVal_1);
     this._expr_1 = currVal_1;
   }
   if ((changes !== null)) { this._NgFor_5_6.ngOnChanges(changes); }
   if (!throwOnChange) { this._NgFor_5_6.ngDoCheck(); }
   this.detectContentChildrenChanges(throwOnChange);
   if (!throwOnChange) {
     if (this._query_Button_2_1.dirty) {
       this._query_Button_2_1.reset([]);
       this._Item_2_4._buttons = this._query_Button_2_1;
       this._query_Button_2_1.notifyOnChanges();
     }
     if (this._query_Icon_2_2.dirty) {
       this._query_Icon_2_2.reset([]);
       this._Item_2_4._icons = this._query_Icon_2_2;
       this._query_Icon_2_2.notifyOnChanges();
     }
     if ((this.numberOfChecks === 0)) { this._Item_2_4.ngAfterContentInit(); }
   }
   const currVal_0:any = import69.interpolate(1,'',this.context.$implicit.title,'');
   if (import69.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this.renderer.setText(this._text_3,currVal_0);
     this._expr_0 = currVal_0;
   }
   this.detectViewChildrenChanges(throwOnChange);
 }

作者:thelgevol    项目:angular2-offline-compile   
detectChangesInternal(throwOnChange:boolean):void {
   this.detectContentChildrenChanges(throwOnChange);
   const currVal_0:any = import4.interpolate(1,'\n  ',this.context.title,'\n');
   if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this.renderer.setText(this._text_1,currVal_0);
     this._expr_0 = currVal_0;
   }
   this.detectViewChildrenChanges(throwOnChange);
 }

作者:TheLarkIn    项目:ng2-compiler-test   
detectChangesInternal(throwOnChange:boolean):void {
   this.detectContentChildrenChanges(throwOnChange);
   this.debug(2,1,8);
   const currVal_0 = import6.interpolate(1,'Hello ',this.context.name,'');
   if (import6.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this.renderer.setText(this._text_2,currVal_0);
     this._expr_0 = currVal_0;
   }
   this.detectViewChildrenChanges(throwOnChange);
 }

作者:rahulchaturvedi    项目:angula   
detectChangesInternal(throwOnChange: boolean): void {
   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.interpolate(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;
   }
 }

作者:cassan    项目: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.interpolate(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;
   }
 }

作者:cassan    项目: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.interpolate(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);
  }


问题


面经


文章

微信
公众号

扫码关注公众号