javascript - Aurelia's Component Not Being Replace By Its Template -
why dont aurelia's custom elements replace template, instead of being put inside it?
example:
i want this
<sidebar-item label="dashboard" href="#" icon="icon-home4"></sidebar-item>
to replaced this
<li class="active"> <a href="index.html"> <i class="icon-home4"></i> <span>dashboard</span> </a> </li>
but instead, result this:
<sidebar-item label="dashboard" href="#" icon="icon-home4"> <li class="active"> <a href="index.html"><i class="icon-home4"></i> <span>dashboard</span></a> </li> </sidebar-item>
is there way replace custom tag template?
basically add @containerless
view-model of sidebaritem
.
import {containerless} 'aurelia-framework'; @containerless export class sidebaritem { ... }
Comments
Post a Comment