Repository navigation
{{did-insert}}, {{did-update}} and {{will-destroy}} API docs - #8
Conversation
rwjblue
left a comment
There was a problem hiding this comment.
Lookin' good! I think we should also mention that the function is not bound to the template context by default, and show how the user might do that (e.g. via action or using ember-bind-helper).
|
Also, I'm happy to land PR's like this iteratively... |
d27b454 to
afbad69
Compare
I've added a short section on using |
rwjblue
left a comment
There was a problem hiding this comment.
I think the "simplest" demo would be some sort of "refs" type thing:
Then using the element and this in that method (perhaps to setup some external DOM plugin e.g. tinymce, mobiledoc, etc).
|
Thanks, I tried to keep it as simple as possible so I added the following example: By default, the executed function will be unbound. If you would like to access the component context in your function, use the export default Component.extend({
@tracked count = 0;
incrementCount() {
this.count++;
}
}); |
{{did-insert}} API docs{{did-insert}}, {{did-update}} and {{will-destroy}} API docs
|
I've added docs for |
|
Thank you! |
…eslint-plugin-ember-8.5.0
part of #2