The mistake was caused by his WindowTemplate
that was generating a $scope
and so in the modal HTML its vm
was not accessible.
In index.html
Replace the line:
<script src="https://admin.marciodias.me/node_modules/angular-ui-bootstrap/dist/ui-bootstrap.js"></script>
For:
<script src="https://admin.marciodias.me/node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
In his ng-template
modal remove the Divs <div class="inmodal">
and <div class="modal-dialog">
No controller.js
Remove the line:
windowTemplateUrl: 'modal-retailchain-product-edit.tpl.html',
Once this is done just access the vm in the html of the modal.
unsolved, I added the environment to plnkr http://plnkr.co/edit/CK41JbKVjxUuZrAM3tNy?p=preview
– Márcio Dias