Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed README's Usage example from Classic to Octane #1226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ ember install ember-simple-charts
Data Provider

```javascript
import Ember from 'ember';
import Controller from '@ember/controller';

const { Controller } = Ember;

export default Controller.extend({
donutData: [
export default class ChartController extends Controller {
donutData = [
{
label: 'Super Cool',
data: 100,
Expand All @@ -39,14 +37,14 @@ export default Controller.extend({
data: 200,
description: 'Long text description here.'
},
],
});
];
};
```

Template:

```handlebars
{{simple-chart height=250 width=250 name='donut' data=donutData}}
<SimpleChart @name='donut' @data={{this.donutData}} />
```

More examples can be found in this addons dummy application.
Expand Down
Loading