0
I’m trying to create a Checkbox tree but I’m having problems with my directive when passing the model.
Follows code:
<ul class="main-level"><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A">
</mdi-input-checkbox>
<ul class="sub-level sub-level-0"><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A1">
</mdi-input-checkbox>
<ul class="sub-level sub-level-1"><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A1a">
</mdi-input-checkbox>
<ul class="sub-level sub-level-1"><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A1a1">
</mdi-input-checkbox>
</li><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A1a2">
</mdi-input-checkbox>
</li></ul></li><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A1b">
</mdi-input-checkbox>
</li></ul></li><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A2">
</mdi-input-checkbox>
<ul class="sub-level sub-level-2"><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A2a">
</mdi-input-checkbox>
</li><li>
<mdi-input-checkbox mdi-reverse="true"
mdi-model="checked"
mdi-label="Elemento A2b">
</mdi-input-checkbox>
</li></ul></li></ul></li></ul>
if I click one is marking all.