Open ramseyfeng opened 5 years ago
Below code works perfect in ngDialog "0.5.9"
After I upgrade it to "0.6.6" or "1.4.0", it cannot work, all the data in template bound to lctrl has been lost.
ngDialog.open({ template: 'projecta/testa.tpl.html', controller: 'loginCtrl', controllerAs: 'lctrl', resolve: { ... } });
If I change it to use
controller: 'loginCtrl as lctrl',
instead of use controllerAs, it will solve the issue.
I just want someone can help to tell me if controllerAs is deprecated? or what should be the correct way to use it?
Below code works perfect in ngDialog "0.5.9"
After I upgrade it to "0.6.6" or "1.4.0", it cannot work, all the data in template bound to lctrl has been lost.
If I change it to use
instead of use controllerAs, it will solve the issue.
I just want someone can help to tell me if controllerAs is deprecated? or what should be the correct way to use it?