Sometimes I see code like

.config(['$httpProvider', function($httpProvider) {

sometimes it is 

angular.module('someModule', [])
.factory('someResource', function ($http, ....) {

so I see few scenarios:
including in square brackets 
including $http and other dependencies
including $httpProvider etc witrh the word Provider

Besides this sometimes all these is included in angular.module, sometimes 
in controllers or services

Can somebody point me to some explanations about all this, it is a bit 
confusing what, how and when to include

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to