Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

The Dependency Injection guide needs a few more details. #6999

Closed
@trusktr

Description

@trusktr

It needs to include which dependencies are available for controllers and factories.

For example, $scope is not a dependency that you can request for a directive. It's not possible to do

myApp.directive("newDirective", ["$scope", function(s) {/* ... */}]);

Can we add some notes on the DI guide about what is and isn't allowed to be injected to the various things that are injectable? Perhaps the differences may not be much (e.g. no $scope for directives), but at least a note of it would be helpful even if that's the case.

I would do it but I'm not knowledgeable enough on the topic yet (I was looking for such information but I couldn't find it).

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions