1
2
3
4
5
6
7
// app/controllers/application
actions: {
refreshCurrentModel() {
let route = Ember.getOwner(this).lookup(`route:${get(this, 'currentRouteName')}`);
return route.refresh();
}
}
1
2
3
{{!-- application.hbs --}}
<button {{action 'refreshCurrentModel'}}>Refresh</button>
{{outlet}}