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 - AngularJS Dependency Injection support
Summary: AngularJS Dependency Injection support
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: AngularJS (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal with 3 votes (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2014-11-04 12:23 UTC by elennaro
Modified: 2015-09-09 11:29 UTC (History)
1 user (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
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