@Cedric_Arnould wrote:
I created a model:
ember g model test name:string When i try to instanciate it, it doesnt work:
//app/routes/example.js model(params) { return Ember.test.create({ name: params.value }); }, In the console i can see: test Cannot read property 'create' of undefined TypeError: Cannot read property 'create' of undefined
Can you explain why it doesnt work?
Posts: 1
Participants: 1