What is Dependency Injection and how to use Dependency Injection in Controller of AngularJs in ASP.Net

Last Reply 15 days ago By dharmendr

Posted 15 days ago

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;
        });

 

You are viewing reply posted by: dharmendr 15 days ago.
I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html?aff_id=108