likeastore / ngDialog

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

load different module template file cannot work #561

Open gaojianzhuang opened 7 years ago

gaojianzhuang commented 7 years ago

What version of ng-dialog are you using? v0.6.3

What version of AngularJS are you using? v1.5.8

What browsers are affected? Chrome

Please provide either a JSFiddle, Plunkr example that replicates the issue

Please describe the issue

What did you expect to happen? When the dialog loads a different module template file, it will not work. Does it not support this scenario? For example: Page A: ng-app="test1", ng-controller="test1Controller" Page B: ng-app="test2", ng-controller="test2Controller".

I want to use the ngDialog in the "test1Controller" to load the Page B. It doesn't work expected.

What actually happened? The dialog can show the "Page B" view.