Top "Angular2-services" questions

Use this tag for questions related to Angular 2 Services, which are JavaScript functions responsible for performing a single task.

Testing - Can't resolve all parameters for (ClassName)

Context I created an ApiService class to be able to handle our custom API queries, while using our own serializer + …

angular karma-jasmine angular2-services angular2-testing angular2-injection
Angular: Lazy loading modules with services

I've been following this tutorial, to understand lazy loading, and below is my inference. Scenario 1: Services are provided by putting …

angular angular2-services angular2-modules angular2-providers
How do you inject a custom service into another custom service?

I'm getting a No Provider for FirebaseService error even after bootstrapping the FirebaseService in the bootstrap(app, [providers]) method. I …

angular angular2-services
Angular 2 service not being injected into component

I have a service defined in my Angular2 (2.0.0-beta.0) application. It's something like this: import {Injectable} from "angular2/core"; @Injectable() …

typescript angular angular2-injection angular2-services
How to return Observable after some Promise get resolved in Ionic 2/Angular 2?

I am trying to return an observable after a successful completion of my Promise, but that function is not returning …

angular ionic2 angular2-services
How to extend angular 2 http class in Angular 2 final

I'm trying to extent angular 2 http class to be able to handle global errors and set up headers for my …

angular angular2-services
ObjectUnsubscribedError: object unsubscribed error when I am using ngx-progress in angular 2

I am using ngx-progressbar bar in Angular 2 application. When app loading first it is working fine. second time it is …

angular angular2-services
Difference between EventEmitter.next() and EventEmitter.emit() in Angular 2

What is the difference between EventEmitter.emit() and EventEmitter.next()? Both dispatching the event to the subscribed listeners. export class …

angular angular2-services
How to use Dependency Injection (DI) correctly in Angular2?

I have been trying to figure out how the (DI) Dependency Injection work in Angular2. I ran into lots of …

angular angular2-services angular2-di
What is multi provider in angular2

I understand that provider is for getting service from another class but what is multi-provider and token thing? And also …

angular angular2-directives angular2-services angular2-forms