Use this tag for questions related to Angular 2 Services, which are JavaScript functions responsible for performing a single task.
So I am trying to subscribe to a simple service that return data from a local JSON file. I have …
javascript angular typescript observable angular2-servicesI have an object that I want to share between my components into an Angular2 app. Here is the source …
typescript angular angular2-services/app - app.component.ts - app.component.html (hide/show: menu bar) - app.global.service.ts (Public varible …
angular angular2-servicesHow can I introduce something like 'my-app-name/services' to avoid lines like the following import? import {XyService} from '../../../services/…
typescript ecmascript-6 angular angular2-servicesI am working on an angular2 project, I have a file in assets folder and I have created a button …
angular angular2-services angular-httpI tried to import the http provider into a service, but I'm getting the following error: Cannot resolve all parameters …
typescript angular systemjs angular2-services angular2-injectionI'm new to angular 2 and I'm trying to make a REST GET request, but I'm getting this error when trying: …
angular angular2-servicesI have a parent service which has some dependencies like @Injectable() export class ParentService{ constructor(private http:Http, private customService:…
angular typescript extends angular2-servicesLooks like shared services is the best practice to solve many situations such as communication among components or as replacement …
angular angular2-servicesHi i am trying to receive error sent from catch block (service). in multiple components i need to show a …
angular angular2-services