The error was caused by its WindowTemplate
which was generating $scope
and therefore 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>
By:
<scriptsrc="https://admin.marciodias.me/node_modules/angular-ui-bootstrap/dist/ui-bootstrap-tpls.js"></script>
In your% of modal% remove the divs ng-template
and <div class="inmodal">
No controller.js
Remove the line:
windowTemplateUrl: 'modal-retailchain-product-edit.tpl.html',
Done this is only access to vm in the modal html.