ember.js - How do I specify a mix of an expression and a string as a class for an ember component? -


i want this

{{#my-custom-component class="some-class-name {{dynamicproperty}}" }} 

but literally rendering some-class-name {{dynamicproperty}} classname, rather value represents.

use concat helper:

{{#my-custom-component class=(concat 'some-class-name' dynamicproperty) }} 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -