Skip to content
This repository was archived by the owner on May 26, 2019. It is now read-only.
This repository was archived by the owner on May 26, 2019. It is now read-only.

document hasBlockParams #2135

Open
Open

Description

@gossi

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.

Activity

  1. locks commented on Nov 27, 2017

    @locks
    Contributor

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

  2. rwjblue commented on Nov 27, 2017

    @rwjblue
    Member

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

    I submitted #2136 to fix the reference you linked to above...

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions