Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Give more context and background for The Object Model section #554

Closed
sajt opened this issue Aug 8, 2015 · 2 comments
Closed

Give more context and background for The Object Model section #554

sajt opened this issue Aug 8, 2015 · 2 comments

Comments

@sajt
Copy link

sajt commented Aug 8, 2015

In the /object-model/classes-and-instances.md the first example is not clear for me.

If I put this:

Person = Ember.Object.extend({
  say(thing) {
    alert(thing);
  }
});

To my routes js I get the following error:

routes/posts.js: line 10, col 1, 'Person' is not defined.

but if I use

Ember.Person = Ember.Object.extend({

What is the perfect solution or where can I define classes?

@michaelrkn
Copy link
Contributor

You're right, this isn't totally clear. I'm going to work on better explaining this section.

Check out http://guides.emberjs.com/v1.13.0/models/defining-models/ for the answer to your question.

@michaelrkn michaelrkn changed the title Classes and instances Give more context and background for The Object Model section Aug 8, 2015
@sajt sajt closed this as completed Aug 8, 2015
@sajt
Copy link
Author

sajt commented Aug 8, 2015

thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants