Do the $http method and $httpProvider in angularjs have the same meaning?
When I read a book, it was said that $http method is used to interact with the server, but $httpProvider is used. Is this a concept?
ringa_lee2017-05-15 17:05:46
Use $httpProvider to change the default behavior of the $http service.
$httpProvider is used to set the configuration of $http requests, such as disabling cache globally, adding headers, etc.
https://docs.angularjs.org/api/ng/provider/$httpProvider
淡淡烟草味2017-05-15 17:05:46
Configure $http, that is, you need to use $httpProvider in the config function