當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript view_utils.interpolate函數代碼示例

本文整理匯總了TypeScript中@angular/core/src/linker/view_utils.interpolate函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript interpolate函數的具體用法?TypeScript interpolate怎麽用?TypeScript interpolate使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了interpolate函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: detectChangesInternal

 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);
 }
開發者ID:jthoms1,項目名稱:ionic2-webpack2-aot,代碼行數:27,代碼來源:AppModule.ngfactory.ts

示例2: detectChangesInternal

 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);
 }
開發者ID:jthoms1,項目名稱:ionic2-webpack2-aot,代碼行數:33,代碼來源:AppModule.ngfactory.ts

示例3: detectChangesInternal

 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);
 }
開發者ID:thelgevold,項目名稱:angular2-offline-compiler,代碼行數:9,代碼來源:app.component.ngfactory.ts

示例4: detectChangesInternal

 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);
 }
開發者ID:TheLarkInn,項目名稱:ng2-compiler-test2,代碼行數:10,代碼來源:app.ngfactory.ts

示例5: detectChangesInternal

 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;
   }
 }
開發者ID:rahulchaturvedie,項目名稱:angular,代碼行數:12,代碼來源:tree_leaf.ngfactory.ts

示例6: 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.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;
   }
 }
開發者ID:cassand,項目名稱:angular,代碼行數:16,代碼來源:tree.ngfactory.ts

示例7: 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.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);
  }
開發者ID:cassand,項目名稱:angular,代碼行數:17,代碼來源:tree_branch.ngfactory.ts


注:本文中的@angular/core/src/linker/view_utils.interpolate函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。