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

Glimmer support / hasBlock support #86

Closed
SirZach opened this issue May 9, 2015 · 15 comments
Closed

Glimmer support / hasBlock support #86

SirZach opened this issue May 9, 2015 · 15 comments

Comments

@SirZach
Copy link
Contributor

SirZach commented May 9, 2015

After upgrading to ember/canary to get the glimmer engine, paper-buttons no longer show up in the app. I'm not entirely sure why this is breaking.

@SirZach
Copy link
Contributor Author

SirZach commented May 16, 2015

If you could point me in the right direction I could take a crack at getting a PR going

@miguelcobain
Copy link
Collaborator

@SirZach, ember-try tests against ember canary. Looks like the tests are passing in ember canary.

What is exactly the problem? What don't the buttons show up?
Please try with the latest 0.1.0 version.

@SirZach
Copy link
Contributor Author

SirZach commented May 27, 2015

I'll try with 0.1.0 tonight. The text in the buttons were not showing up.

On Wed, May 27, 2015, 6:23 AM Miguel Andrade [email protected]
wrote:

@SirZach https://github.com/SirZach, ember-try tests against ember
canary. Looks like the tests are passing in ember canary.

What is exactly the problem? What don't the buttons show up?
Please try with the latest 0.1.0 version.


Reply to this email directly or view it on GitHub
#86 (comment)
.

@miguelcobain
Copy link
Collaborator

How did it go?

@SirZach
Copy link
Contributor Author

SirZach commented Jun 2, 2015

I'm seeing that if I use the buttons as block components then the text on the button doesn't show up. If I switch it over to a non-block component and set the text to the label attribute, it'll show up.

@miguelcobain
Copy link
Collaborator

Nice.

A failing test would be awesome.

@miguelcobain
Copy link
Collaborator

Looks like the way to go now is using hasBlock: http://emberjs.com/api/classes/Ember.Component.html#property_hasBlock

@SirZach
Copy link
Contributor Author

SirZach commented Jun 2, 2015

I'll take a crack at spinning up a PR although not sure when you can merge it since I'm not sure when you want to start supporting glimmer...

@miguelcobain
Copy link
Collaborator

Ideally we should support the same versions that ember-try tests, and that includes Glimmer.
There are things we can do to support both pre and post glimmer.

@SirZach
Copy link
Contributor Author

SirZach commented Jun 3, 2015

So I've been playing around with some tests and whatnot and have found that if I use ember-1.13 or later then using hasBlock is the way to go, otherwise, we need to use template. I can write a computed property in the base component to check for hasBlock first and then fall back to template if that makes sense to you.

@SirZach
Copy link
Contributor Author

SirZach commented Jun 3, 2015

currently dealing with a bug where the actual implementation for hasBlock has disappeared. tracking progress at emberjs/ember.js#11301. until that's fixed my PR will have to be on hold

@SirZach
Copy link
Contributor Author

SirZach commented Jun 3, 2015

When emberjs/ember.js#11313 is merged in, we'll be able to continue to check for {{#if template}} until you don't want to support pre-Glimmer and then you can make the change to hasBlock.

@miguelcobain
Copy link
Collaborator

Bingo. 👍

@benedikt-buchert
Copy link

#118

@miguelcobain
Copy link
Collaborator

Closed via #113.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants