Its bootstrap opening is modal, as well as the uploaded template specified. But do not show anything.
Check out the demo here: http://demo.hupp.in/food-admin
Go to the [Products] section and find EnegiKcal> = 3500. Then click "Manage". It will open, but the contents of the template will not be loaded.
I also noticed that it sometimes returns HTTP 304 for a template.
This is how I open the modal:
/** Open Modal For add edit tags */ $scope.open = function (productId) { var modalInstance = $modal.open({ templateUrl: 'views/some.html', controller: tagsModalInstanceCtrl, size: 'lg' }); modalInstance.result.then(function (msg) { }, function () { // $log.info('Modal dismissed at: ' + new Date()); }); }; var tagsModalInstanceCtrl = function ($scope, $modalInstance) { $scope.ok = function () { $modalInstance.close("hi"); }; $scope.cancel = function () { $modalInstance.dismiss('cancel'); }; };
Here is the template code:
<div class="modal-header"> <h3 class="modal-title">I'm a modal!</h3> </div> <div class="modal-body"> <h3>Well, Hello there!</h3> </div> <div class="modal-footer"> <button class="btn btn-primary" ng-click="ok()">OK</button> <button class="btn btn-warning" ng-click="cancel()">Cancel</button> </div>


source share