I'm trying to build a component with a component child inside, after fighting many hours I don't know how to follow ....
This is my html file in the component
- Code: Select all
<div style="padding-left:15px;">
<div class="panel panel-default">
<div class="panel-heading clearfix">
<h3 class="panel-title">Perfil</h3>
</div>
<div class="panel-body">
<div style="margin-top:30px;margin-bottom:30px;">
<svy-component-wrapper component-property-value="child_component"></svy-component-wrapper>
</div>
</div>
</div>
</div>
this is my spec file in the component
- Code: Select all
{
"name": "globalpet-frmt900perfiles",
"displayName": "frm_t900_perfiles",
"version": 1,
"definition": "globalpet/frmt900perfiles/frmt900perfiles.js",
"libraries": [],
"model":
{
"child_component" : {"type": "component"}
}
}
How can I tell the component the child component I want to use?
How can I assign methods and properties?
The goal is to insert the valuelist component as child of the first component.
Best Regards. Roberto Blasco.