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

hasBlock only exposed to templates #12703

Closed
Herriau opened this issue Dec 11, 2015 · 4 comments
Closed

hasBlock only exposed to templates #12703

Herriau opened this issue Dec 11, 2015 · 4 comments

Comments

@Herriau
Copy link
Contributor

Herriau commented Dec 11, 2015

Opening this issue since #11741 was closed.

hasBlock is listed as a property of Component (http://emberjs.com/api/classes/Ember.Component.html#property_hasBlock), and as such it should be possible to consume its value from JS like any other property.

@mmun
Copy link
Member

mmun commented Dec 11, 2015

It shouldn't be documented there.

@Herriau
Copy link
Contributor Author

Herriau commented Dec 14, 2015

Then what is the recommended way of checking the presence of a block from JS?

@mmun
Copy link
Member

mmun commented Dec 14, 2015

There isn't a nice way right now but there is a hacky workaround. There's an open issue in the RFC repository that addresses it.

@rwjblue
Copy link
Member

rwjblue commented Dec 19, 2015

Closing in favor of emberjs/rfcs#102.

@rwjblue rwjblue closed this as completed Dec 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants