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} from 'angular2/core';
import {Component, ElementRef, ChangeDetectionStrategy} from 'angular2/core';
import {Ion} from '../ion';
import {Gesture} from '../../gestures/gesture';
@@ -42,7 +42,8 @@ import * as util from '../../util';
'<div class="scroll-zoom-wrapper">' +
'<ng-content></ng-content>' +
'</div>' +
'</scroll-content>'
'</scroll-content>',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class Scroll extends Ion {
/**