Skip to content

Change Writing Helpers JavaScript code blocks to use Class Syntax #542

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 the guides/release/templates/writing-helpers markdown file. Here's what that page looks like in the regular guides. 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. rajasegar commented on Mar 1, 2019

    @rajasegar
    Contributor

    I am working on it , raised a PR for the same, please let me know for anything.

  2. added a commit that references this issue on Mar 4, 2019
  3. added
    help wanted
    on Mar 4, 2019
  4. MelSumner commented on Mar 4, 2019

    @MelSumner
    Member

    Thank you @rajasegar for doing this work! 👍

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

    Octanehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions