What's the difference between ember.js
Object methods extend
and create
?
TLDR: You will find the answer in Ember guides: classes and instances.
Sometimes I see that one in the examples and sometimes the other. In particular, what's the difference between Em.Application.extend({})
and Em.Application.create({})
?
If I declare my app like this, what does it mean?
Ember.Application.create({
MyController : Ember.ArrayController.extend({
}),
});
How can I access the instance of MyController? Do I need to create it somehow? I need to push some data into it.
extend
andcreate
under Classes and Instances – bcm360 Sep 11 '13 at 20:32