confirm value is not returning from sweet alert service
Had created sweet alert as seperate service and Im injecting that inro my service This is the sweet alert service (function(){ 'use strict'; angular.module('app.services') .factory('SweetAlert', SweetAlertService); SweetAlertService.$inject = []; function SweetAlertService( ) { var swal = window.swal; //public methods var self = { swal: function ( arg1, arg2, arg3) { if( typeof(arg2) === 'function' ) { swal( arg1, function(isConfirm){ arg2(isConfirm); }, arg3 ); } else { swal( arg1, arg2, arg3 ); } }, success: function(title, message) { swal( title, message, 'success' ); }, confirm: function