What's the difference between ember.js extend and create?

Viewed 8169

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.

2 Answers
Related