ember-polyfills / ember-angle-bracket-invocation-polyfill

MIT License
76 stars 33 forks source link

Expected behavior when attempting to render yielded variable #52

Closed samselikoff closed 5 years ago

samselikoff commented 5 years ago

(possibly related to https://github.com/rwjblue/ember-angle-bracket-invocation-polyfill/issues/17)

I installed this addon to use in our app (w00t!) and our videos stopped playing.

Tracked it down to this snippet:

<video>
  {{#each prioritizedSources as |source|}}
    <source src="{{source.url}}" type="video/{{source.format}}">
  {{/each}}
</video>

Nothing happened, the sources just didn't render. I guess I understand why.

I'm just curious about the expected behavior here. Is silence/no output correct? Maybe this is a template linting problem rather than a compiler or run-time error one?

rwjblue commented 5 years ago

More details in https://github.com/emberjs/ember.js/issues/16826#issuecomment-408504435.

rwjblue commented 5 years ago

Given that the linting rule helps mitigate this and that it’s an ember bug, I’m going to close (we can track over in Ember)...