add properties ngDialogData and ngDialogId to the scope

This commit is contained in:
Michael Wittwer
2015-12-29 08:33:34 +01:00
parent dcaacde371
commit 2c1ee425b6
+11
View File
@@ -79,6 +79,17 @@ declare module angular.dialog {
* For dialogs opened with the openConfirm() method the value is used as the reject reason.
*/
closeThisDialog(value?:any): void;
/**
* Any serializable data that you want to be stored in the controller's dialog scope.
* From version 0.3.6 $scope.ngDialogData keeps references to the objects instead of copying them.
*/
ngDialogData : {};
/**
* The id of the dialog. If you you ngDialogData, it'll be also available under ngDialogData.ngDialogId
*/
ngDialogId : string;
}
interface IDialogOpenConfirmScope extends IDialogOpenScope {