Top "Angular2-services" questions

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

angular2 NgFor only supports binding to Iterables such as Arrays

Angular2 rc.6 I am getting following error when running a loop on json data core.umd.js:5995 EXCEPTION: Error in …

angular angular2-services
How can I detect service variable change when updated from another component?

I'm trying to get the updated value from a service variable (isSidebarVisible) which is keeps on updated by another component (…

angular angular2-services
angular 2 http withCredentials

I'm am trying to use withCredentials to send a cookie along to my service but can't find out how to …

angular angular2-services angular2-http
Get status code http.get response angular2

I need to get the status code of the following http call and return it as a string //This method …

angular typescript angular2-services http-status-codes
How to get Form Data in Angular 2

I have a form in my angular 2 Project. I know how to Retrieve data from the API. But don't know …

angular angular2-forms angular2-services
Persisting and accessing values globally in multiple components in Angular 2

I have a settings page where users can save some config variables, such as a Username. The user can also …

angular angular2-services
Angular Http - toPromise or subscribe

I have watch a few courses on Angular and have found there are different ways to manage data from an …

angularjs angular angular2-services
Property 'toPromise' does not exist on type 'Observable<Response>'

import { Headers, Http } from '@angular/http'; @Injectable() export class PublisherService{ private publishersUrl = 'app/publisher'; constructor(private http: Http) { } getPublishers(): …

angular typescript rxjs angular2-services
Injecting http in a service gives "No provider for Http!" error

Angular version: 2.0.0-beta.13 I am trying to inject http into a service: @Injectable() export class GithubService { ... constructor(private http: Http) { } } …

angular angular2-services
How to detect variable change in Angular2

I have the following config object which is set before the constructor is running: config: Object = { onSlideChangeEnd : function(slide:any) { …

angular angular2-services