Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngDialog controllerAs not working when upgrade ngdialog version to 0.6.6 #596

Open
ramseyfeng opened this issue Feb 25, 2019 · 0 comments
Open

Comments

@ramseyfeng
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant