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

Comments

Projects
None yet
3 participants
@Herriau

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

This comment has been minimized.

Show comment
Hide comment
@mmun

mmun Dec 11, 2015

Member

It shouldn't be documented there.

Member

mmun commented Dec 11, 2015

It shouldn't be documented there.

@Herriau

This comment has been minimized.

Show comment
Hide comment
@Herriau

Herriau Dec 14, 2015

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

Herriau commented Dec 14, 2015

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

@mmun

This comment has been minimized.

Show comment
Hide comment
@mmun

mmun Dec 14, 2015

Member

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.

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

This comment has been minimized.

Show comment
Hide comment
@rwjblue

rwjblue Dec 19, 2015

Member

Closing in favor of emberjs/rfcs#102.

Member

rwjblue commented Dec 19, 2015

Closing in favor of emberjs/rfcs#102.

@rwjblue rwjblue closed this Dec 19, 2015

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