Skip to main content
-1 votes
1 answer
66 views

I am implementing a modern state management pattern in Angular (version 16+) where a dedicated service acts as a state facade, integrating traditional RxJS asynchronous operations with the new Signals ...
michelemalagnini's user avatar
0 votes
0 answers
22 views

I migrated my project from Angular15 to Angular19. I am running mixed mode for standalone components where only AppComponent is standalone whereas all other components are standalone:false. I am using ...
RDV's user avatar
  • 1,046
0 votes
0 answers
56 views

I'm using Angular 19 with Static Site Generation (SSG) and my ngOnInit method is not executing during the build process. The API calls are only made when clients load the page in the browser, ...
Wierzba's user avatar
  • 11
3 votes
3 answers
193 views

I understand how to use the DecimalPipe in an Angular 20 HTML template, while importing it in the component code. However, I cannot figure out how to use the DecimalPipe in an Angular service. I keep ...
bob.mazzo's user avatar
  • 5,789
1 vote
2 answers
150 views

In my Angular application, users can configure settings on a particular page (e.g., filters, view preferences, etc.). When the user navigates to another route and then returns to the original page, I ...
Ruchita Deshmukh's user avatar
2 votes
3 answers
61 views

In a component (or service) I call to Main method which calls to 2 other private methods. export class MyService { private Stage1 (N : number) { console.log ('-->Stage1'); for (...
Zvi Vered's user avatar
  • 655
1 vote
1 answer
770 views

FYI: I am using angular 19.1.0 with karma Let's assume we have this service and component // NOT PROVIDED IN ROOT! @Injectable() export class TestService { getData(): string { return 'this is ...
Abdullah El-Kindy's user avatar
1 vote
1 answer
61 views

A-Service.component.ts ` import { Injectable, Inject } from '@angular/core'; import { BService } from './BService'; @Injectable({ providedIn: 'root', }) export class AService { constructor(...
Aishwarya Gharde's user avatar
0 votes
2 answers
76 views

I have a page showing a list of items retrieved with an http service, and a button to add a new one. After adding a new one, I navigate programmatically to the first page, but now the service is not ...
perissf's user avatar
  • 16.3k
1 vote
1 answer
34 views

I have a Angular application, which has multiple components that access the same Service. I am trying to understand if there is any benefit to switching away from using route parameters to using ...
Nick Fallows's user avatar
1 vote
2 answers
656 views

How to inject a Service inside ApplicationConfig? export const appConfig: ApplicationConfig = { providers: [ provideRouter(appRoutes), provideTransloco({ config: { ...
Maksat Madeniyetov's user avatar
-1 votes
2 answers
48 views

i have this event management service in my angular application. i want to set the return type of the OnEvent() method dynamiclly and i want to set the type where i inject the service in my components. ...
Pouya Babaie's user avatar
0 votes
1 answer
94 views

Custom services in Angular can have either signal based or non-signal based properties. In case of signal based properties, if they update, angular ensures to notify the component (which injects such ...
Aneesh Gupta's user avatar
1 vote
1 answer
1k views

I am trying to create a service in Angular that should only be injectable within a specific module, not accessible outside that module. I have a service MyService that I want to restrict so it can ...
Buffden's user avatar
  • 11
1 vote
2 answers
873 views

How can I provide a service that is not at the root of the application, and use the same instance between several components and other services? Not using providers in routes and not using ng module. ...
Anatoly Surgutov's user avatar

15 30 50 per page
1
2 3 4 5
139