I have an Ember application with a long list of items displayed on the page. The content of the list is computed depending on a user query. Sometimes the new list takes a second or two to render. I am trying to display a loading indicator during this rendering process, and what I really need is a handler for when the tag containing the list has finished re-rendering. Is this possible?
<div id="listContainer">
{{#each item in theList}}
...
{{/each}}
</ul>
theList: function() {
// return result of filtering baseList with the query
}.property('baseList', 'query')
actions: {
someHandler: function() {
// how can I catch when the #listContainer is finished rerendering?
}
}