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 248393

Summary: AngularJS Dependency Injection support
Product: web Reporter: elennaro
Component: AngularJSAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal CC: ppisl
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description elennaro 2014-11-04 12:23:37 UTC
Next enhancements are very needed: 

1) autocomplete 
1.a) Say we have 

someModule.{controller|service|cofig|run|any}('MyController', ['$scope', 'dep1', 'd<Ctrl+Space>', function($scope, dep1, <place to put new dependency>) {
    $scope.aMethod = function() {

In dependencies declaration when starting to type "'d<Ctrl+Space>" it could be good to see all services, controllers names that are declared angular way in all JS files of the project.
1.b) On dependencies usage if I have a service:
myModule.{service|factory}('Service1', function(){
return {
 a: ...,
 b: ...
in Controller or other service that uses Service1 : myModule.{controller|service|factory|any}('MyController', [ 'Service1', function(Service1){
return {
 var myVar = Service1.<Suggest here proper autocomplete values first: a, b>

2) Ctrl+click on a declared dependency could open corresponding modules part.

see for more information on AngularJS Dependency Injection