OyvindLE
2/27/2016 - 12:56 PM

Angularstrap Modal with scope

Angularstrap Modal with scope

var scope = $scope.$new(),
    myModal = $modal({
    templateUrl: '/js/shipments/shipping/modal.freight.tpl.html',
    show: false,
    scope: scope
});
    
vm.showModal = function () {
    myModal.$promise.then(myModal.show);
};