This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 246917

Summary: Navigation to factories/services/providers
Product: web Reporter: Vladimir Riha <vriha>
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: ppisl
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:

Description Vladimir Riha 2014-09-08 08:09:35 UTC
It would be very useful to have Ctrl+Click navigation to factories/services/providers. For example if I have following declarations:


myApp.factory('PhoneFct', ['$resource',
  function($resource){
  }]).service('PhoneService', ['$resource',
  function($resource){
  }]).provide('PhoneProvider', ['$resource',
  function($resource){
  }]);


And the injected it "anywhere" (controller, another provider/factory/service, filter... - I think there is a small limited number of AngularJS' functions where DI is possible) like


myApp.controller('PhoneListCtrl', ['$scope', 'PhoneFct',
  function($scope, PhoneFct) {
  }]);


myApp.factory('AnotherFct', ['PhoneFct',
  function(PhoneFct) {
  }]);

Then Ctrl+Click on all PhoneFct occurrences (array items and function parameters) would navigate me to given factory/service/provider.

Thank you