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

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

@sajt

Description

@sajt

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions