zenprogrammer
zenprogrammer

Reputation: 731

eclipse outline for angular sources with javascript developer tools

I use Aptana Studio and AngularJS.

When I open a javascript file, which I define a controller or a service, outline section is empty.

is there a way or trick to see list of variables/functions in the outline, which are defined in that controller or service?

for example

myApp.controller('myAppController', function($scope){ 
   var abc = {}; 
   $scope.var1 = abc; 
   var funcA = function(){
      return false
   }; 
   $scope.funcB = function(){};
};

is it there a way to see abc, var1, funcA and funcB in outline?

UPDATE

enter image description here

Upvotes: 1

Views: 459

Answers (1)

Angelo
Angelo

Reputation: 2125

I know question is about Aptana, but as your question is about too Angular and Eclipse and Outline, I suggest you that you try AngularJS Eclipse. It is based on tern.java and provides a Tern Outline:

enter image description here

Please note that tern.java extends the JSDT Editor and in the future version JSDT will give the capability to extend Outline. So Tern Outline will be removed and replaced with standard Outline.

Upvotes: 2

Related Questions