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

Cannot find controller with name StoreControlller #69

Closed
codeBYdivy opened this issue Jun 11, 2014 · 3 comments
Closed

Cannot find controller with name StoreControlller #69

codeBYdivy opened this issue Jun 11, 2014 · 3 comments

Comments

@codeBYdivy
Copy link

I am new to Angular.

I am trying some demo code from angular.org.

I found a Eclipse plugin for angular JS, i installed allthe necessary plugins,

But still there is some error that my controller is not detected. and some red line is coming for that.

But everything works fine in browser.

I searched for the issue similar and i found it as #34 but that was closed before giving the solution.

So i creating it again.

Can you please explain why is it so and how can remove that error.

@angelozerr
Copy link
Owner

Please share your project. Without your project I cannot help you more.

@codeBYdivy
Copy link
Author

I don't know how to share in git HUB, i new to this

i have added my work at following link

https://github.com/codeBYdivy/AngularWORK/tree/master/github.com/codeBYdivy/AngularWORK.git/zANG_LEARN/WebContent/divy

Please look at this and let me know the concerned issue..

Only the controllers in ng-controller is not able to resolve dependency.

@angelozerr
Copy link
Owner

Thank's for your project.

I have studied your problem and it's a limitation of AngularJS Eclipse. I have created 2 issues to fix your problem :

If you want to benefit with current AngularJS Eclipse feature :

  1. add $scope in your function controller like this :
myApp.controller('StoreController', function($scope) {

});
  1. don't use 'as' in your ng-controller.

I close this issue because I have created 2 issues which must fix your problem.

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

2 participants