Currently can.Component supports custom tags only , but am wondering whether components will eventually support being instantiated by Attribute or CSS class as some other frameworks do. Really attribute support is one that I would like to see the most.
A case for this would be list items where the CSS is standardized and you would like to use for standard components such as li elements in bootstrap:
When using the following any CSS for li elements will not work:
<my-parent-component>
{{#each someCollection}}
<my-component {some-value}="."></my-component>
{{/each}}
</my-parent-component>
Something as below would be much easier to work with if possible since the component template/scope and viewModel would exist within an actual li element.
<ul my-parent-component>
{{#each someCollection}}
<li my-component="."></li>
{{/each}}
</ul>
I know that can.view.attr has the ability to add logic to standard HTML elements, but lacks the power and features of Components such as viewModel/events etc from what I have currently seen.
As always, thank you for your help…