Can you yield block parameters with angle bracket components



I’m just playing with the new 2.0 canary build released a little while ago and was wondering if you could yield values with the angle bracket component syntax. And if so, what that would look like.

For example:

Template (my-component)

{{yield "Bob"}}


<my-component as="name">
Hello {{name}}

What an exciting time for Ember!


Nevermind. I looked through the code and found that this is how you take block params:

<my-component as |name|>
Hello {{name}}



Where did you find it out ? It doesn’t works for me …