You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting: TypeError - cannot read property 'resolve' of null
at line 91 of angular-modail-service version: 0.6.7
// Resolve the 'close' promise.
closeDeferred.resolve(result);
I don't understand this, I'm using it very simply...
-- usage --
// modalTemplateData is a service containing a hash - we load it here, and use in the controller
modalTemplateData.setData({ errorTitle: 'Error', errorMessage: $log.buffer().join('<br>') });
ModalService.showModal({
templateUrl: ENV.errorReportModal,
controller: 'SimpleModalCtrl'
}).then(function(modal) {
modal.element.modal();
modal.close.then(function() {
$log.reset();
});
});
'use strict';
(function () {
function controllerFn ($scope, $element, close, modalTemplateData) {
// this is supposed to catch clicks on the backdrop and close the dialog
$element.on('hidden.bs.modal', close);
// we extend scope with this hash so template substitutions can be customized
angular.extend($scope,modalTemplateData.getData());
$scope.close = function(result) {
close(result, 500); // close, but give 500ms for bootstrap to animate
};
}
})();
The text was updated successfully, but these errors were encountered:
I'm getting: TypeError - cannot read property 'resolve' of null
at line 91 of angular-modail-service version: 0.6.7
I don't understand this, I'm using it very simply...
-- usage --
-- template --
-- controller --
The text was updated successfully, but these errors were encountered: