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

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

作者:jthoms    项目:ionic2-webpack2-ao   
detectChangesInternal(throwOnChange:boolean):void {
   if (((this.numberOfChecks === 0) && !throwOnChange)) { this._Content_9_4.ngOnInit(); }
   this.detectContentChildrenChanges(throwOnChange);
   if (!throwOnChange) {
     if (this._query_Button_30_1.dirty) {
       this._query_Button_30_1.reset([]);
       this._Item_30_5._buttons = this._query_Button_30_1;
       this._query_Button_30_1.notifyOnChanges();
     }
     if (this._query_Icon_30_2.dirty) {
       this._query_Icon_30_2.reset([]);
       this._Item_30_5._icons = this._query_Icon_30_2;
       this._query_Icon_30_2.notifyOnChanges();
     }
     if ((this.numberOfChecks === 0)) { this._Item_30_5.ngAfterContentInit(); }
   }
   const currVal_0:any = this._Toolbar_2_4._sbPadding;
   if (import69.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this.renderer.setElementClass(this._el_2,'statusbar-padding',currVal_0);
     this._expr_0 = currVal_0;
   }
   const currVal_1:any = this._Content_9_4._sbPadding;
   if (import69.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
     this.renderer.setElementClass(this._el_9,'statusbar-padding',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;
   if (((this.numberOfChecks === 0) && !throwOnChange)) { this._Content_9_4.ngOnInit(); }
   changes = null;
   const currVal_2:any = this.context.people;
   if (import69.checkBinding(throwOnChange,this._expr_2,currVal_2)) {
     this._NgFor_11_6.ngForOf = currVal_2;
     if ((changes === null)) { (changes = {}); }
     changes['ngForOf'] = new import71.SimpleChange(this._expr_2,currVal_2);
     this._expr_2 = currVal_2;
   }
   if ((changes !== null)) { this._NgFor_11_6.ngOnChanges(changes); }
   if (!throwOnChange) { this._NgFor_11_6.ngDoCheck(); }
   this.detectContentChildrenChanges(throwOnChange);
   const currVal_0:any = this._Toolbar_2_4._sbPadding;
   if (import69.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this.renderer.setElementClass(this._el_2,'statusbar-padding',currVal_0);
     this._expr_0 = currVal_0;
   }
   const currVal_1:any = this._Content_9_4._sbPadding;
   if (import69.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
     this.renderer.setElementClass(this._el_9,'statusbar-padding',currVal_1);
     this._expr_1 = currVal_1;
   }
   this.detectViewChildrenChanges(throwOnChange);
 }

作者: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);
 }

作者:CrazyLion    项目:ionic-sit   
checkHost(view:import2.AppView<any>,componentView:import2.AppView<any>,el:any,throwOnChange:boolean):void {
   const currVal_5:any = (this.context.state !== 'inactive');
   if (import3.checkBinding(throwOnChange,this._expr_5,currVal_5)) {
     view.renderer.setElementClass(el,'refresher-active',currVal_5);
     this._expr_5 = currVal_5;
   }
   const currVal_6:any = this.context._top;
   if (import3.checkBinding(throwOnChange,this._expr_6,currVal_6)) {
     view.renderer.setElementStyle(el,'top',((view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_6) == null)? (null as any): view.viewUtils.sanitizer.sanitize(import4.SecurityContext.STYLE,currVal_6).toString()));
     this._expr_6 = currVal_6;
   }
 }

作者: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;
   }
 }

作者:lovae12    项目:on   
detectChangesInternal(throwOnChange:boolean):void {
   const currVal_0:any = 'modal-dialog';
   if (import4.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this._NgClass_1_3.klass = currVal_0;
     this._expr_0 = currVal_0;
   }
   const currVal_1:any = this.context.getCssClasses();
   if (import4.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
     this._NgClass_1_3.ngClass = currVal_1;
     this._expr_1 = currVal_1;
   }
   if (!throwOnChange) { this._NgClass_1_3.ngDoCheck(); }
   this.detectContentChildrenChanges(throwOnChange);
   this.detectViewChildrenChanges(throwOnChange);
 }

作者:jthoms    项目:ionic2-webpack2-ao   
detectChangesInternal(throwOnChange:boolean):void {
   if (((this.numberOfChecks === 0) && !throwOnChange)) { this._Content_9_4.ngOnInit(); }
   this.detectContentChildrenChanges(throwOnChange);
   const currVal_0:any = this._Toolbar_2_4._sbPadding;
   if (import69.checkBinding(throwOnChange,this._expr_0,currVal_0)) {
     this.renderer.setElementClass(this._el_2,'statusbar-padding',currVal_0);
     this._expr_0 = currVal_0;
   }
   const currVal_1:any = this._Content_9_4._sbPadding;
   if (import69.checkBinding(throwOnChange,this._expr_1,currVal_1)) {
     this.renderer.setElementClass(this._el_9,'statusbar-padding',currVal_1);
     this._expr_1 = currVal_1;
   }
   this.detectViewChildrenChanges(throwOnChange);
 }


问题


面经


文章

微信
公众号

扫码关注公众号