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

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -