Told you, we love sharing!
AngularJSFront End DevelopmentTechnology
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, Flash) {}[/js] in the controller function […]
AngularJSFront End Development
When a function of service or controller invoked via the injector then we have to annotate these functions so that the injector knows what service to inject into the function. In Angular, there are three ways of annotating code with service name – Inline Array Annotation $inject Property Annotation Implicit Annotation Inline Array Annotation This […]