Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4828

Computed in #each only trigger once

$
0
0

@adsl99801 wrote:

controller:
pagesize: 10,
page: 1,
list: Ember.computed('page', 'pagesize', 'list', function() {
// http request get new list mList by page and pagesize
this.set('list', mList);

}

template:
{{#each list as |item index|}}
....
{{}/each}

but Ember.computed only trigger once.
When I change page value from 1 to 2
computed not trigger!

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles