Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Inconsistent $http DI injection #451

Closed
aesyondu opened this issue Dec 24, 2019 · 1 comment
Closed

Inconsistent $http DI injection #451

aesyondu opened this issue Dec 24, 2019 · 1 comment

Comments

@aesyondu
Copy link

In step 7 of the tutorial, https://docs.angularjs.org/tutorial/step_07, the controller property is not an array and has no '$http' (see picture)

image

But in the github repository it is an array with the first element '$http'.

controller: ['$http', function PhoneListController($http) {

Does it matter, is there any difference?

@aesyondu
Copy link
Author

Nvm it is explained later.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant