Kavita Bora

AngularJS, Front End Development

Angular 2 Dependency Injection

In this blog, we will go through the new dependency injection system of Angular 2. As we know DI is the heart of AngularJS. In Angular 1 we can inject dependency at multiple places in different ways such as: in the directive definition by name   eg. [js]app.directive('questionTemplate', ['$http', 'Flash', function($http,...