Angle Problem ui.bootstrap.modal

0

Starting a modal with ui.bootstrap.modal $ uibModal, seveni controller and controllerAs, in console.log I see that the instance controller was started and the object loaded when clicked, but within the modal I can not display the data, someone can you help?

link

    
asked by anonymous 20.11.2017 / 19:56

1 answer

0

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.

    
23.11.2017 / 03:37