Pull to refresh shell

This commit is contained in:
Max Lynch
2015-04-26 08:27:43 -05:00
parent 14fc066610
commit 8ff24082ee
5 changed files with 70 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
import {NgElement, Decorator, Component, View as NgView, PropertySetter} from 'angular2/angular2';
@Decorator({
selector: '[ion-refresher]'
})
export class Refresher {
constructor(
@NgElement() element:NgElement
) {
this.domElement = element.domElement;
this.domElement.classList.add('content');
console.log(this.domElement);
this.domElement.children[0].addEventListener('scroll', function(e) {
console.log('CONTENT: scroll', e.target.scrollTop);
});
}
}