1

I am having a discussion with my colleague, who is emphasizing on using

$('#createModal').modal('show');

instead of the above plugin.

I am creating the modal via code below:

$scope.createModal = $modal({    
    scope: $scope,    
    template: '/reports/static/partials/schedule-modal.html',    
    show: true    
})

Which apparently does not inherit style sheets of bootstrap, like background color is different, when I create modal in this way.

Could You please kindly advise, why have you preferred using mgcrea.ngStrap to create the modal and not using:

$('#createModal').modal('show');

I am unable to explain this to my colleague and I would like to know, so that I could explain the team.

georgeawg
  • 48,608
  • 13
  • 72
  • 95
qkhan
  • 11
  • 3

0 Answers0