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,...

by Kavita Bora
Tag: provider


Service in AngularJS

When we are working on MVC (or MVVM for AngularJS) Design-Patterns, our application is loosely coupled because of different independent components defined for e.g. Controller, View, Services, Modal/Data etc. All the components have their own work/role but today we will discuss only Services. Services are that part of application where...

by Amit Kumar
Tag: provider