Closed gvocale closed 4 years ago
Rewriting it this way seem to have fixed the issue:
import Component from '@glimmer/component';
import { action } from '@ember/object';
export default class MyComponent extends Component {
alternativeNotify;
constructor(owner, args) {
super(owner, args);
this.alternativeNotify = Notify.create();
}
@action
clicked() {
this.alternativeNotify.success('Hello from the controller');
}
}
Ciao @gvocale! Do you mind submitting a pull request to update the documentation?
@btecu I don't seem to have write access and be able to open the PR. Can I still open a PR in some other way?
You have to fork the repository, then make the changes and push it. Once that's done you should be able to open a pull request.
Fixed in #157.
I am trying to do the following:
and
But I get the following error in console: