I want to create to a popup to send email ? are you sure you want to send an email yes or no? Please help me out M getting this error Unknown provider: $modalProvider <- $modal <- userDetailController.
define([
'angular',
'./module'
], function (angular, module) {
'use strict';
module.controller('userDetailController', [
'$scope',
'userDetails',
'navigationStateService',
'$translate',
'ngDialog',
function ($scope,userDetails,navigationStateService, $translate,ngDialog) {
$scope.user = userDetails.getSelectedUser();
$scope.openContactForm = function() {
var promise = modals.open(
"confirm",
{
message: "Are you sure you want to taste that?!"
}
);
promise.then(
function handleResolve( response ) {
console.log( "Confirm resolved." );
},
function handleReject( error ) {
console.warn( "Confirm rejected!" );
}
);
};