likeastore / ngDialog

Modals and popups provider for Angular.js applications
http://likeastore.github.io/ngDialog
3.14k stars 692 forks source link

How is it possible to bind data back to $scope from the $scope changes made within the dialog? #598

Open sterichards opened 5 years ago

sterichards commented 5 years ago

I feel like i'm resorting to hacks at the moment, using $rootScope, to set flags, to do data change detection and then persist things back to $scope, based upon a $watch on the parent $scope

Surely there is a better way to do this?

Why can't ngDialog do something normal, like return the $scope that has been modified by ngDialog to allow me to compare ngDialog.$scope to the main $scope?