0

Trying to get my modal view appear but it's not currently showing:

AngularJS:

$scope.openModal = function (row) {
    var uibModalInstance = $uibModal.open({
        templateUrl: "views/modals/view.html",
        controller: 'ModalCtrl',
        backdrop  : 'static',
        resolve: {
            row: function () {
                return row;
            },
            SpringDataRestService: function () {
                return SpringDataRestService;
            }
        }
    });
};

HTML:

<div class="col-xs-6 col-md-6 no-padding-right pull-right">
    <span class="pull-right padding-5 padding-right-10">
        <a href type="button" class="btn btn-sm shiny"
           ng-click="openModal()">Create New User</a>
    </span>
</div>
georgeawg
  • 48,608
  • 13
  • 72
  • 95
User0110101
  • 119
  • 3
  • 12
  • version of ui-bootstraptpls and the order of scripts in which you are adding in index.html? and any error if you are getting it in console? – Gaurav Singh Oct 23 '18 at 16:01
  • Those `resolve` functions look sketchy. What are you trying to accomplish with them? – georgeawg Oct 23 '18 at 16:27
  • 1
    Do you try this commenting, SpringDataRestService: function () { return SpringDataRestService; } this line of code? – S. Deshmukh Oct 23 '18 at 17:13

0 Answers0