From 2c1ee425b67491d70b83b21c832472afec846203 Mon Sep 17 00:00:00 2001 From: Michael Wittwer Date: Tue, 29 Dec 2015 08:33:34 +0100 Subject: [PATCH] add properties ngDialogData and ngDialogId to the scope --- ng-dialog/ng-dialog.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ng-dialog/ng-dialog.d.ts b/ng-dialog/ng-dialog.d.ts index 1eb1a1f8d..c2444b984 100644 --- a/ng-dialog/ng-dialog.d.ts +++ b/ng-dialog/ng-dialog.d.ts @@ -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 {