Top "Angular2-services" questions

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

Subscribing to Observable in service from component

I have searched for quite some time to understand how to subscribe to an array whose values are constantly updated. …

angular observable angular2-services angular2-observables
Testing observable object angular 2 karma

I'm working on my unit test cases for Angular 2 with Karma, I got stuck with one of a function where …

unit-testing angular karma-jasmine angular2-services karma-coverage
Angular 2 useExisting providers

What are the usages for useExisting provider? Is it useExistingOrThrowIfThereIsNone or useExistingOrCreateIfThereIsNone? Can one of these behaviours be chosen on …

javascript typescript angular angular2-services
Difference between @Self and @Host Angular 2+ Dependency Injection Decorators

Kindly explain the difference between @Self and @Host. The angular API documentation gives some idea. But it's not clear to …

angular dependency-injection angular2-services angular-decorator
Angular2 load configuration from backend on startup

In my Angular2 app, I'm trying to load configurations from backend on bootstrap using HTTP so that I can use …

angular angular2-services
How to handle multiple queryParams in Angular2

I'm trying to implement a filtering mechanism in a new Angular2 app, that would allow me to filter a list …

angular typescript angular2-routing angular2-services angular2-router
Angular2: Support for withCredentials and useXDomain

I am new to angular2. I am trying to login to my Django server which is a production server from …

angular cross-domain angular2-services django-cors-headers
ng2-smart-table with paging from back-end (Spring)

I am using a back-end server (Java Spring) that has Pager enabled. I am loading 100 records per page on a …

angular web pagination angular2-services ng2-smart-table
How to conditionally inject service into component?

I have 2 services one.service.ts and two.service.ts, and a component dashboard.component.ts. How to conditionally inject …

angular dependency-injection angular2-services