hello sir
i am new in angular js and want to know about dependency injection
any one tell me the esay way what is dependency and why it is so usefull
like below example we create scop and http as a injector i think
countryApp.controller('CountryCtrl', ['$scope', '$http', function (scope, http){
http.get('countries.json').success(function(data) {
scope.countries = data;
});