Top "Angular-services" questions

Angular services are substitutable objects that are wired together using dependency injection.

How to test 'private' functions in an angular service with Karma and Jasmine

I have a service in my angular app that looks something like this: angular.module('BracketService', []).factory('BracketService', [function() { function …

javascript angularjs unit-testing jasmine angular-services
Angular 2 send data from component to service

My target is to send data from Angular component to service and use service methods to work on it. Example: …

javascript angular typescript angular-services angular-components
Generic type Subject<T> requires 1 type argument(s). - Angular

I'm getting data from my service and I've red about it's important to unsubscribe after subscribe, and here is how …

angular typescript rxjs angular-services
What is the lifecycle of a service in Angular 5

Angular 5 When is a service created and destroyed, what are its lifecycle hooks (if any) and how is its data …

angular lifecycle angular-services
IONIC 3 CORS ISSUE

I am having a CORS issue with Ionic 3 when attempting to make GET calls to an API. I am using …

json angular cors ionic3 angular-services
Angular : Error: Uncaught (in promise): TypeError: Object(...) is not a function

I was trying to integrate google cloud firestore in my angular app and it lead to that error Error: Uncaught (…

angular google-cloud-firestore angular-services
Angular cli service generation: service is generated in root instead of /services

I'm messing around with Angular a bit. Trying to generate some stuff with angular-cli. But when generating a new service …

angular angular-cli angular-services
Angular 4.x: No provider for Service

I am having trouble injecting a service into another service in Angular 4.x and receive the error: Error: No provider …

angular angular-services
Sharing Data between pages in AngularJS returning empty

Typically i write SPA's and sharing data between controllers is simple with a service. I am not using an SPA …

javascript angularjs angularjs-scope angular-services
Angular http post to return data back through service to component

I Want to return data (@@identity) from sql server through the service to the component The Web api is definitely …

javascript angular typescript observable angular-services