guides icon indicating copy to clipboard operation
guides copied to clipboard

document hasBlockParams

Open gossi opened this issue 7 years ago • 2 comments

For components, they have two "magical" variables: hasBlock and hasBlockParams:

https://github.com/emberjs/ember.js/blob/2f32bf3fd7981d05dda4bac5c2a7c680c676d265/packages/ember-template-compiler/lib/plugins/transform-has-block-syntax.js#L23-L24

Unfortunately, only the hasBlock variable is documented (https://guides.emberjs.com/v2.16.0/components/block-params/) but not the hasBlockParams variable, which is very useful, when it comes to high-order component development.

gossi avatar Nov 24 '17 21:11 gossi

Hi, thanks for raising this issue. Are you able to send over a PR trying to address it?

locks avatar Nov 27 '17 12:11 locks

FWIW, these are supposed to be template helpers not "properties" (as mentioned in the guides for hasBlock). They should also be dasherized...

I submitted https://github.com/emberjs/guides/pull/2136 to fix the reference you linked to above...

rwjblue avatar Nov 27 '17 14:11 rwjblue