|
@@ -1,4 +1,5 @@
|
|
|
-import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
|
|
+import { Component, Input, Output, ChangeDetectionStrategy, EventEmitter } from '@angular/core';
|
|
|
+import { InfiniteScroll, Refresher } from 'ionic-angular';
|
|
|
|
|
|
/**
|
|
|
* Generated class for the FeedComponent component.
|
|
@@ -14,9 +15,13 @@ import { Component, Input, ChangeDetectionStrategy } from '@angular/core';
|
|
|
export class FeedComponent {
|
|
|
|
|
|
@Input() data: any[];
|
|
|
+ @Output() onRefresh: EventEmitter<any> = new EventEmitter<any>();
|
|
|
|
|
|
constructor() {
|
|
|
console.log('Hello FeedComponent Component');
|
|
|
}
|
|
|
|
|
|
+ doRefresh(refresher: Refresher) {
|
|
|
+ this.onRefresh.emit(refresher);
|
|
|
+ }
|
|
|
}
|