-
Notifications
You must be signed in to change notification settings - Fork 27
Angular2 version of pulltorefresh #11
Comments
There is a refresh event on the component. I'm not sure about ng2 as I On Thu, Jul 7, 2016, 8:23 AM Yunus Emre Uluçay notifications@github.com
|
You just need to call the refresh event: <PullToRefresh (refresh)="refreshList($event)">
<ListView [items]="groceryList" row="2" class="small-spacing" [class.visible]="listLoaded">
<template let-item="item">
<Label [text]="item.name" class="medium-spacing"></Label>
</template>
</ListView>
</PullToRefresh> class YourComponent {
refreshList(args) {
console.log('do refresh');
}
} |
Closing @yeulucay - if you need help using this see above comment. |
I want to add your component to my {N} Angular app.
and added this in my component ts file.
in the view page used it like that
It works and refresh spinner is shown on the top of the list when you pull down. But it should somehow trigger a method. lets suppose method name is
refreshList(){}
how will I use it from the view?
The text was updated successfully, but these errors were encountered: