• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript view_utils.interpolate函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap