hello guys i’m new to aurelia so pls help,
im trying to bind a custum element mutiple time on a same custum element.
exemple:
home.html/js
<template>
<**msgfromat type.bind="type[1]" msg.two-way="msg[1]"></msgfromat>**
<h3>Profile</h3>
<p>Lorem ipsum Do commodo in proident enim in dolor cupidatat adipisicing dolore officia nisi aliqua
incididunt Ut veniam lorem ipsum Consectetur ut in in eu do</p>
<profil></profil>
<div class="row section-intro">
<div class="col-twelve">
<**msgfromat type.bind="type[2]" msg.two-way="msg[2]"></msgfromat>**
<h5>Resume</h5>
<h1>References</h1>
<p class="lead">Lorem ipsum Do commodo in proident enim in dolor cupidatat adipisicing dolore officia nisi aliqua
incididunt Ut veniam lorem ipsum Consectetur ut in in eu do.</p>
</div>
</div> <!-- /section-intro-->
<experiences></experiences>
<formations></formations>
</section> <!-- /features -->
</template>
------------------------------------------------------------------------------------
msgfromat.html
from.html/js
<template>
<div **id="xxxxxxx"** class="popup-modal slider mfp-hide">
<div class="formadds">
<form role="form" action="" id="formedit" submit.delegate="submit($event)">
<fieldset>
<legend>${type}</legend>
<div class="form-group">
<label for="">presentation text</label>
<textarea name="textmsg" class="form-control" id="txtarea1" rows="10" value.bind="textareaval & validate"></textarea>
</div>
</fieldset>
</form>
</div>
<div class="link-box addforms"><button type="submit" form="formedit" class="validebtn">valider</button></div>
</div> <!-- /form-present -->
voilà, i would like u guys to help me on multiple time’s the same CustElement with differente bindale
on home.html/js
and to bind the id on from.html/js like :
id:${‘from-’ + type1}
–i already tried it no result
help me pls