Skip to content

Change Ember Data JavaScript code blocks to use Class Syntax #543

Closed

Description

@jenweber

We'd love to have a volunteer for this! Please see Octane MVP for instructions about where to make your PR. Please only volunteer for this issue if you can open a PR by the end of the next day. Thanks for your help!

To-do

For this issue, we should only make "class syntax" changes to the code blocks within guides/release/models markdown files. Later PRs will fix up the written explanations to go with them. Here's an example of converting to Class syntax:

// Before
import Controller from '@ember/controller';

export default Controller.extend({
  title: 'hello-world.app',
});
// After
import Controller from '@ember/controller';

export default class ApplicationController extends Controller {
  title = 'hello-world.app';
}
  • branch from the octane branch of the guides
  • See this guide's Native Classes explanation to learn about the changes you will have to make
  • Make changes to the code blocks to use class syntax
  • PR to the octane branch

Activity

  1. jenweber commented on Mar 1, 2019

    @jenweber
    ContributorAuthor

    Thanks Eli!!!

  2. added a commit that references this issue on Mar 10, 2019
  3. acorncom commented on Mar 14, 2019

    @acorncom
    Member

    @efx anything else needed here?

  4. jenweber commented on May 31, 2019

    @jenweber
    ContributorAuthor

    Thanks everyone for the help! Closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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