chore: add ChangeDetectionStrategy.OnPush strategy

Close #5885
This commit is contained in:
Adam Bradley
2016-04-10 00:28:50 -05:00
parent 2348b51be7
commit 4e8ecae83c
12 changed files with 41 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
import {Component, ElementRef, Optional, NgZone} from 'angular2/core';
import {Component, ElementRef, Optional, NgZone, ChangeDetectionStrategy} from 'angular2/core';
import {Ion} from '../ion';
import {IonicApp} from '../app/app';
@@ -32,7 +32,8 @@ import {ScrollView} from '../../util/scroll-view';
'<ng-content></ng-content>' +
'</scroll-content>' +
'<ng-content select="ion-fixed"></ng-content>' +
'<ng-content select="ion-refresher"></ng-content>'
'<ng-content select="ion-refresher"></ng-content>',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class Content extends Ion {
private _padding: number = 0;