11/**
22 * angular-dialog-service - A service to handle common dialog types in a web application. Built on top of Angular-Bootstrap's modal
3- * @version v5.2.10
3+ * @version v5.2.11
44 * @author Michael Conroy, michael.e.conroy@gmail.com
55 * @license MIT, http://www.opensource.org/licenses/MIT
66 */
@@ -212,9 +212,9 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
212212
213213 /**
214214 * Use Backdrop
215- *
215+ *
216216 * Sets the use of the modal backdrop. Either to have one or not and
217- * whether or not it responds to mouse clicks ('static' sets the
217+ * whether or not it responds to mouse clicks ('static' sets the
218218 * backdrop to true and does not respond to mouse clicks).
219219 *
220220 * @param val mixed (true, false, 'static')
@@ -226,7 +226,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
226226
227227 /**
228228 * Use ESC Close
229- *
229+ *
230230 * Sets the use of the ESC (escape) key to close modal windows.
231231 *
232232 * @param val boolean
@@ -250,7 +250,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
250250
251251 /**
252252 * Use Copy
253- *
253+ *
254254 * Determines the use of angular.copy when sending data to the modal controller.
255255 *
256256 * @param val boolean
@@ -275,7 +275,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
275275 /**
276276 * Set Size
277277 *
278- * Sets the modal size to use (sm,lg,md), requires Angular-ui-Bootstrap 0.11.0 and Bootstrap 3.1.0 +
278+ * Sets the modal size to use (sm,lg,md)
279279 *
280280 * @param val string (sm,lg,md)
281281 */
@@ -305,7 +305,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
305305
306306
307307 this . $get = [ '$uibModal' , function ( $uibModal ) {
308-
308+
309309 return {
310310 /**
311311 * Error Dialog
@@ -337,7 +337,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
337337 }
338338 } ) ; // end modal.open
339339 } , // end error
340-
340+
341341 /**
342342 * Wait Dialog
343343 *
@@ -370,7 +370,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
370370 }
371371 } ) ; // end modal.open
372372 } , // end wait
373-
373+
374374 /**
375375 * Notify Dialog
376376 *
@@ -401,7 +401,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
401401 }
402402 } ) ; // end modal.open
403403 } , // end notify
404-
404+
405405 /**
406406 * Confirm Dialog
407407 *
@@ -432,7 +432,7 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
432432 }
433433 } ) ; // end modal.open
434434 } , // end confirm
435-
435+
436436 /**
437437 * Create Custom Dialog
438438 *
@@ -441,21 +441,22 @@ angular.module('dialogs.services',['ui.bootstrap.modal','dialogs.controllers'])
441441 * @param data object
442442 * @param opts object
443443 */
444- create : function ( url , ctrlr , data , opts ) {
444+ create : function ( url , ctrlr , data , opts , ctrlAs ) {
445445 var copy = ( opts && angular . isDefined ( opts . copy ) ) ? opts . copy : _copy ;
446446 opts = _setOpts ( opts ) ;
447447
448448 return $uibModal . open ( {
449449 templateUrl : url ,
450450 controller : ctrlr ,
451+ controllerAs : ctrlAs ,
451452 keyboard : opts . kb ,
452453 backdrop : opts . bd ,
453454 backdropClass : opts . bdc ,
454455 windowClass : opts . wc ,
455456 size : opts . ws ,
456457 animation : opts . anim ,
457458 resolve : {
458- data : function ( ) {
459+ data : function ( ) {
459460 if ( copy )
460461 return angular . copy ( data ) ;
461462 else
0 commit comments