Skip to main content
1 vote
0 answers
126 views

Memory leaks with angular ssr 18 application

I've been struggling with memory leaks issues in my Angular application for a few months now and haven't been able to find a solution. The memory heap is not flushed until my pods restart every 6 ...
Luhd's user avatar
  • 11
2 votes
2 answers
56 views

How can i filter an Observable/BehaviourSubject correctly?

Service: @Injectable({ providedIn: 'root' }) export class DeckService{ private decks$ = new BehaviorSubject<Deck[]>([]); constructor(private http: HttpClient) {} public init(): void { ...
scxry's user avatar
  • 49
0 votes
3 answers
75 views

Force nested loop over observables to wait for all

I've read about forkJoin, async, await, and also tried out angular life cycle methods, but finally found no good solution. I need to wait until initiAttributesMap has finished his job before next code ...
saab's user avatar
  • 139
0 votes
1 answer
55 views

Dynamic update menu links based on user auth status

I am building an angular app. Many of the menu links are static and public and available to users with out any authentication. But some do require a user to be logged in. The menu itself is in a ...
jesmith17's user avatar
-2 votes
1 answer
92 views

Angular Observable: Unable to read property Length inside Subscribe [closed]

I've recently started developing using Angular, and I'm still in learning mode. So, I have this dilemma, which I need to access the "Length" property of an array inside of .Subscribe of an ...
Josh.iO's user avatar
1 vote
1 answer
777 views

what happens to active subscriptions when the browser is closed or refreshed?

I have few subscriptions in app component ( root component) in angular. Once angular loads the application, the app component never get destroyed until we close the application. This basically means, ...
Ane's user avatar
  • 145
1 vote
1 answer
217 views

Angular RxJS, push newly added item to the existing Observable Array

I have 2 services. RoomService -> Returns a list of existing rooms NotificationService -> Returns a Server Sent Event (SSE) when a new room is added. What I'm trying to do is Fetch all the ...
AdityaParab's user avatar
  • 7,100
0 votes
1 answer
407 views

can I call the apis in observable in a certain sequence/order

I am learning angular Observable topic. I was trying to call apis inside Observable and hoping that they will run in an order in which I have stated them. Below is my component class code: import { ...
J. Doe's user avatar
  • 1
0 votes
0 answers
49 views

I can't get the information outside of subscribe section with Observable and HttpClient in Angular

My backend is working, but in the frontend I have the service: getDoctorById(sId : number): Observable<Doctor>{ let url = this.baseURL+"/id/"+sId return this.httpClient.get<Doctor&...
Laura Ruiz's user avatar
0 votes
0 answers
160 views

In Angular2, how do I display an object consisting of a Tuple that's sent from a .NET Core controller?

I have the following controller: [Route("api/[controller]")] [ApiController] public class TestController : ControllerBase { [HttpGet] public IActionResult Test() { return ...
HasQuestionsAndAnswers's user avatar
2 votes
2 answers
800 views

Why the angular unit test is not testing the content of the subscription in this service?

I'm using Angular 14. I'm trying to test this service: import { EnvironmentService } from './environment.service'; import { MsalService, MsalBroadcastService, MSAL_GUARD_CONFIG, MsalGuardConfiguration ...
SteDeus's user avatar
  • 57
0 votes
1 answer
489 views

How to wait for function with observable to resolve?

Working on Angular/Angular2 and I've got something like buildData() { this.services.getData()).pipe(takeUntil(this.ngUnsubscribe)) .subscribe(response => { this.handleResponse(response);...
bhq's user avatar
  • 9
0 votes
1 answer
921 views

Angular - Get data from a service for a form

I want to create a form in Angular, but I need some data for placeholders. This data is retrieved from a service as JSON with three fields. I don't really understand how TypeScript works so I might be ...
Neo's user avatar
  • 514
0 votes
1 answer
49 views

in the Angular tutorial, how do you modify the log line to specify the number of heroes fetched?

The code example is this: /** GET heroes from the server */ getHeroes(): Observable<Hero[]> { return this.http.get<Hero[]>(this.heroesUrl) .pipe( tap(_ => this.log('fetched ...
Jason Michael's user avatar
1 vote
2 answers
6k views

Angular App initialization with Observables

I have this application which needs some initialization before starting. I'm using the recommended way, with the APP_INITIALIZER, the factory function, etc. along with the syntax in the factory ...
zeroquaranta's user avatar

15 30 50 per page
1
2 3 4 5
57