-
Notifications
You must be signed in to change notification settings - Fork 692
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
controllerAs error #259
Comments
I guess I know what's the issue. That's maybe because of [] inside controller definition. Not able to check it right now. @djindjic does it work for you in case of following code? ctrl.openDialog = function () {
ngDialog.open({
template: 'popupTmpl.html',
controller: function() {
var vm = this;
vm.name = 'child';
},
controllerAs: 'ctrlChild'
});
}; This is not a solution as we should correctly handle extra dependencies injected into controller, but just wanted to clarify that issue is because of []. |
@egor-smirnov just tried, I've got same issue. |
@djindjic could you please prepare plunker where I could play with what you have right now? |
Yes, give me just a little time 👍 |
Thinking through how I implemented it, I think it only supports named On Fri, Jun 19, 2015, 5:59 AM Aleksandar Djindjic [email protected]
|
Just submitted #260 that should resolve this issue. I confirmed it is working with inline controller definition as well as named controllers in a local project I'm working on. |
@andrewogburn thanks, will check it later. |
just to confirm that master works with inline controller. thanks guys! |
I have some strange behaviour after setting up controllerAs syntax. Here is a console log:
So I have simple code to try this feature:
maybe you @andrewogburn know what is a problem?
The text was updated successfully, but these errors were encountered: