本文整理汇总了TypeScript中@angular/core/src/linker/view_utils.checkBinding函数的典型用法代码示例。如果您正苦于以下问题:TypeScript checkBinding函数的具体用法?TypeScript checkBinding怎么用?TypeScript checkBinding使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了checkBinding函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: detectChangesInternal
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);
}
开发者ID:jthoms1,项目名称:ionic2-webpack2-aot,代码行数:28,代码来源:AppModule.ngfactory.ts
示例2: detectChangesInternal
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);
}
开发者ID:jthoms1,项目名称:ionic2-webpack2-aot,代码行数:26,代码来源:AppModule.ngfactory.ts
示例3: 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
示例4: checkHost
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;
}
}
开发者ID:CrazyLionL,项目名称:ionic-site,代码行数:12,代码来源:refresher.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 {
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);
}
开发者ID:lovae123,项目名称:one,代码行数:15,代码来源:modal.ngfactory.ts
示例7: detectChangesInternal
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);
}
开发者ID:jthoms1,项目名称:ionic2-webpack2-aot,代码行数:15,代码来源:AppModule.ngfactory.ts
注:本文中的@angular/core/src/linker/view_utils.checkBinding函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论