Destructuring
This commit is contained in:
parent
a52710f090
commit
8684d0d148
3 changed files with 12 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Route.extend({
|
||||
const { Route } = Ember;
|
||||
|
||||
export default Route.extend({
|
||||
model: function() {
|
||||
return this.store.findAll('species');
|
||||
},
|
||||
|
|
Reference in a new issue