-
Notifications
You must be signed in to change notification settings - Fork 12
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
Fixing template property deprecation, so the addon can work with latest ember v2.10.0 #88
Conversation
… in the latest version 2.10.0
Maybe you should also change the README file to show the layout changes |
Recently I do not have spare time to review and apply PR. I will try to do that tomorrow. I'm sorry about it. |
I tried to run some examples from the dummy (in russian version) and found a problem -
That happens because the import Ember from "ember";
import hbs from 'htmlbars-inline-precompile';
export default Ember.Controller.extend({
init() {
this.get("dialog").alert(hbs`Hello world`);
return this._super(...arguments);
}
}); I need time to research Glimmer to find way to fix it. For now I don't know how Glimmer works. |
I've reproduced problem on ember-twiddle. |
After talking with community in slack, I've found solution to paste prerendered template into the presenter's body. I've created one more component ( @waleedq, could you review and accept PR waleedq#6 if all fine. |
@@ -7,9 +7,6 @@ moduleFor('service:dialog', 'Unit | Service | dialog', { | |||
needs: ['component:presenter'], | |||
setup() { | |||
this.service = this.subject(); | |||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's removed by mistake, i suppose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is how git displays the change. There is one }
below. The code is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant that the teardown
method was removed in this commit. I pulled commit
into the local machine. There is really no teardown
.
Resolved yield problem
@ajile Sorry for being late, i've tested the PR and it works totally fine it's merged now, please check it out and let me know |
@waleedq thank you! Everything works well. I'm going to merge PR and release stable version. |
Hello,
It appears that the component's template property is deprecated from v1.x api but there was no any deprecation messages about using it, and it have been replace with the layout property. to fix this issue in v2.10.0 the partial helper should be used to render the given template inside the dialog layout
this PR should fix this issue #87
Thank You,