Top "Angular2-services" questions

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

How to config different development environment in Angular 2 app

I have a constant file export class constants { public static get API_ENDPOINT(): string { return 'https://dvelopment-server/'; } } And I …

angular angular2-services
How to share service between two modules - @NgModule in angular not between to components?

In my application, I have two different bootstrap module (@NgModule) running independently in one application. There are not one angular …

angular angular2-services angular2-modules
Static Methods and Angular 2 Services in JavaScript ES6

While coding an app with Angular 2 and multiple calculation services I faced the following questions: When do I use static …

javascript angular typescript angular2-services
Cant export service from module 'it was neither declared nor imported'

I am trying to export an Service from one of my modules but i only get the following error: ERROR …

angular angular2-services
Angular 2 Best approach to use FileSaver.js

I need to use the FileSaver.js (https://github.com/eligrey/FileSaver.js/) in my Angular2 application. I know I …

angular angular2-directives angular2-services filesaver.js
Angular 2 HTTPS request

How to configure and make a https request from angular 2? Couldn't find any resources on it. Can please someone guide …

angular https angular2-services angular2-http
How to call component method from service? (angular2)

I want to create service, which can interact with one component. All another components in my app, should be able …

angular typescript angular2-services angular2-components angular2-injection
ts1109 : expression expected angular error

I was following this sample from https://angular.io/docs/ts/latest/guide/router.html and I am trying to …

angular angular2-services
Angular 2 cache observable http result data

I have a service that fetches data via the HTTP service and returns an observable object. After the first call …

angular observable angular2-services
How can I watch for changes to localStorage in Angular2?

I was trying to figure out how to get a menu to appear and disappear based on being logged in …

angular angular2-services