GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
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
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.
It shouldn't be documented there.
Then what is the recommended way of checking the presence of a block from JS?
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.
Closing in favor of emberjs/rfcs#102.