likeastore / ngDialog

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

opening multiple dialog with different scope for each dialog #508

Open AmarKoli opened 8 years ago

AmarKoli commented 8 years ago

What version of ng-dialog are you using? v0.6.2 (modified Draggable #413)

What version of AngularJS are you using? angular-1.5.6

What browsers are affected? All

Please provide either a JSFiddle, Plunkr example that replicates the issue https://plnkr.co/edit/dmsHzwyNP0ceZN01KJhx?p=preview

Please describe the issue the scope is same for all, when i type in textbox in one dialog, all the textbox in different dialog are changed with the same value. please check the plnkr link here

What did you expect to happen? different scope for different dialog, each form element/s should have different scope.

What actually happened? the scope is same for all, when i type in textbox in one dialog, all the textbox in different dialog are changed with the same value.

Nachtfeuer commented 7 years ago

I'm not in the ngDialog "team" but correct me if I'm wrong ... you use "scope: $scope" ... isn't then this behavior understandable?