Wednesday, 15 April 2015

javascript - AngularJS and bootstrap mutliple modals -



javascript - AngularJS and bootstrap mutliple modals -

i'm using angularjs , bootstrapui modals , need possibility open multiple modals @ same time, when open modal need set button/link open secondone

is there way this?

thanks

may missing smth, there not magic in modals: open modal = show div controller... rest done css. http://plnkr.co/edit/gnadpfu9ofdffyea11ve?p=preview

modal in modal:

angular.module('ui.bootstrap.demo').controller('modalinstancectrl', function ($scope, $modal, $modalinstance, items) { $scope.items = items; $scope.selected = { item: $scope.items[0] }; $scope.open = function () { var modalinstance = $modal.open({ templateurl: 'mymodalcontent.html', controller: 'modalinstancectrl', resolve: { items: function () { homecoming $scope.items; } } }); }; $scope.ok = function () { $modalinstance.close($scope.selected.item); }; $scope.cancel = function () { $modalinstance.dismiss('cancel'); }; });

javascript angularjs modal-dialog angular-ui-bootstrap

No comments:

Post a Comment