{{#each App.SampleViewController}} {{#view App.SampleView contentBinding="this" sort-date="content.sortDate" name="content.name"}} <a href="#" onclick="App.loadSampleDetails(this);" {{bindAttr id="content.id"}}> {{/view}} {{/each}}
How to add custom attributes / general attributes (for example, in the above examples of sort-date / name attributes) to the view element from the xhandlebars script tag, I know that using the Bindings attributes we can add, but I have dynamic data coming from the controller through every.
source share