angularjs - Open modal inside a modal -
i have angular ui modal. in there button.on clicking button want open modal in angular ui.how can this
$scope.open = function () { var modalinstance = $modal.open({ templateurl: 'mymodalcontent.html', controller: modalinstancectrl, }) };
mymodalcontent.html contains button on clicking want open modal. <a class="btn btn-success" href="#" role="button" ng-click="openmodal()">open modal</a>
i unable open modal on clicking button
you can open second modal without trouble
var modalinstancesecond = $modal.open({ templateurl: 'mysecondmodalcontent.html', controller: 'modalinstancectrl', });
take plunker:
Comments
Post a Comment