Giter Club home page Giter Club logo

Comments (3)

angelozerr avatar angelozerr commented on June 6, 2024

Ok it seems that you have 2 problems :

  • 'hello' module : I don't understand why you have this problem? In your JS editor, have you completion on angular? Have you tried to close and reopen your HTML editor? Otherwise, is it possible for you to share your project?
  • 'HelloController' controller : the best mean to define controller with angular, is to declare it with module.controller. In your case, you want to use a controller defined in a 'global' function. it's not the best mean with angular. So I have decided not to support any global function, but just function with $scope parameter. if you add $scope in your HelloController function parameter, it should work. But you will have problem in JS editor with completion on $scope parameter. See ternjs/tern#257

from angularjs-eclipse.

 avatar commented on June 6, 2024

Hello,

To solve the problem I had to modify app.js like this:

screen shot 2014-05-24 at 22 05 58

Adding enclosure + defining controller with .controller + using $scope in constructor
function parameter.

I am not sure these 3 modifications were required together but now the plugin is finding the controller definition:

screen shot 2014-05-24 at 22 17 46

screen shot 2014-05-24 at 22 22 01

from angularjs-eclipse.

angelozerr avatar angelozerr commented on June 6, 2024

Adding enclosure +

It should work without enclosure.

defining controller with .controller + using $scope in constructor function parameter.

Yes you need to do that, as I have explained you.

I close this issue.

from angularjs-eclipse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.