i'm trying to teach myself angular2. I trying to build component "trigger-resize", which i want to render as :
<a class="hidden-xs" href="">
<em class="fa fa-navicon"></em>
</a>
and NOT as:
<trigger-resize>
<a class="hidden-xs" href="">
<em class="fa fa-navicon"></em>
</a>
</trigger-resize>
(i dont want custom selector to render)
In angular 1. i know it would be achieved by "replace:true" option, but is it possible to achieve it in angular2?
Kind Regards
<a>
as selector instead of a tag like<a trigger-resize class="hidden-xs"... >
and then in the component annotation[trigger-resize]
as selector? – Günter Zöchbauertrigger-resize
attribute becometrigger-resize
, but maybe you want to use a directive instead anyway. If you want to add resizable behavior a component is not the right way. – Günter Zöchbauer