Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

In Angular, assuming I have this component where automationId is updated every new content while txt is updated less frequent. During those times that txt is NOT updated or the value remains as the ...
user3714598's user avatar
  • 1,783
2 votes
2 answers
107 views

I read in several articles telling that markForCheck only marks a components as dirty and does not trigger change detection cycle. Given the following App Component in Angular 20 Zoneless mode @...
Olivier Boissé's user avatar
1 vote
0 answers
81 views

In my production code i have a timing problem regarding component creation. I tried to create a minimal reproduction but in this i don´t get the error. Maybe somebody has an idea what can cause the ...
Sebastian Geiger's user avatar
1 vote
2 answers
103 views

I have a reusable angular component that handles cursor based pagination. However, the select value never changes on the HTML side, yet the change detection works. Example, select options are 10, 25, ...
kibet's user avatar
  • 435
0 votes
1 answer
110 views

After adding a new route to one of the app modules (Angular 15) I had to refactor the main routing component and wrap it into a shell component which is simply this: import { Component } from '@...
pop's user avatar
  • 3,820
0 votes
2 answers
113 views

I'm facing the error expression has changed after it was checked. I know, that this check runs only in dev mode (runs twice) and that I won't have the error message in prod. But I want to know why I ...
derstauner's user avatar
  • 1,958
2 votes
2 answers
761 views

I have an Angular dropdown component (CustomDropdownComponent) that receives a list of options and a selected value from its parent component via @Input(). The parent also listens for selection ...
David Küng's user avatar
1 vote
2 answers
104 views

Is there a comparable signals based approach to something like this: /** PROPS */ selectedOption = signal<string | null>(null); getSelectedState(option: string): boolean | undefined { if (...
monkey's user avatar
  • 1,743
1 vote
1 answer
325 views

My reload component: import {ChangeDetectionStrategy, Component, input, output, resource} from '@angular/core'; import {ErrorService} from "../error.service"; @Component({ selector: 'a50-...
Galdor's user avatar
  • 2,055
1 vote
1 answer
44 views

I couldn't really understand what is causing change detection to run in the below code. I understand that markForCheck doesn't do it but something must do it because the view is updated if you play it ...
Luke's user avatar
  • 11
1 vote
2 answers
323 views

I’m using Angular 19 with the new signals API (and OnPush strategy). I have a component that tracks the current URL as a signal, then for each item in an array (e.g., a menu), I create a computed ...
Jonas Hammerschmidt's user avatar
0 votes
1 answer
103 views

I'm currently facing an issue with infinite calls to a getter method in my Angular component that handles form validation. The getter is used to determine the validity of a form control, but it seems ...
Ravi Gaud's user avatar
  • 544
0 votes
1 answer
77 views

I'm trying to update the page index from the parent component in an Angular application using a child component that handles pagination. The child component has an index input property and an event ...
Pawan yadav's user avatar
0 votes
1 answer
52 views

I am using the following code inside my component's constructor. The component is using the OnPush change detection strategy. As we can see, setTimeout executes outside the Angular zone, meaning ...
noman tufail's user avatar
1 vote
2 answers
57 views

I have a component that displays dynamic, read-only data. For example: <div>{{getText()}}</div> I noticed that getText is being invoked over and over by Angular, even if there is ...
Ya.'s user avatar
  • 2,747
1 vote
1 answer
3k views

Perhaps I'm trying to use too-complex signals, let me know if what I am trying to achieve is just not a good use-case for Angular's Signals and I guess I'll try a different approach, but I feel like ...
Ego Placebo's user avatar
1 vote
1 answer
105 views

Main component has tabs, component A, B etc. My component_A has preloaded data but I have a button for filter. I have a button that toggles a drawer from another component (main component). ...
Danger Boy's user avatar
1 vote
2 answers
142 views

I have added a breakpoint in the angular source code on the detectChanges() method: I noticed that when I click on the button from the component below, the breakpoint is not hit. import { Component, ...
balteo's user avatar
  • 24.9k
1 vote
0 answers
222 views

I randomly have this error ( that I understand the importance of after research ) but I don't understand how to avoid it. I have an api service with a number Signals initially set to 0 that I update ...
Benoît Dumont's user avatar
1 vote
2 answers
100 views

I have an Angular component that is used with composition, meaning the title of the component changes dynamically based on input. The problem I'm encountering is that when the page loads, the height ...
Semedmar's user avatar
2 votes
2 answers
3k views

I'm using nz-calendar from ng-zorro-antd in my Angular application. Every time I click on a date in the calendar, I receive the following warning in the console: NG0956: The configured tracking ...
JarMoo's user avatar
  • 44
1 vote
1 answer
60 views

I have a dynamic container that shows 2 components at a time using a paginator. I want to be able to swap a component with its previous/next and so far it's working; however, when I try to swap the ...
R1D3R175's user avatar
  • 288
1 vote
1 answer
49 views

The select is not rendering data until the second interaction with him. <div class="align-items-center"> <label class="form-label">Select Value</label> ...
sevila's user avatar
  • 157
0 votes
1 answer
43 views

I have parent component @Component({ selector: 'parent', template: ' <div *ngIf="!service.activeTab">DEFAULT</div> <div *ngIf="service.activeTab"> ...
cat1244's user avatar
  • 69
1 vote
1 answer
89 views

In my angular app I have a scenario where I have list of countries and if I select a country it will make an API call and fetched the respective states list. Then if I select state it should display ...
Nagarjuna Reddy's user avatar
1 vote
1 answer
79 views

I have a custom table and paginator stand alone components. When I have a table by itself sticky works fine for the column, but when I add a paginator to the table, the sticky is removed whenever I go ...
dluisely's user avatar
  • 101
0 votes
2 answers
704 views

I am trying to have a function which will do sync/async tasks but this should not trigger change detection upon completion. I am triggering this function from the button click in UI. Template file: &...
Hitesh Sandal's user avatar
1 vote
1 answer
114 views

Apparently I have a huge missunderstanding about angular's internals. Consider the following situation: @Component({ selector: 'banana', template: ` <h1>We have {{ item.x }} bananas.</h1&...
T_01's user avatar
  • 1,413
0 votes
0 answers
55 views

First, due diligence. Here I see how the change detection works. Here is a blog elaborating and explaining the subject. Here I can read about environments. Here I have examples on the change detection ...
Konrad Viltersten's user avatar
1 vote
1 answer
78 views

I was going through the Angular source code trying to find out how change detection is triggered for timers. I know they are patched, but I can't find a place where the actual change detection is ...
AlexBor's user avatar
  • 315
2 votes
2 answers
668 views

I'm a bit confused over the behaviour of this loop in Angular: A simple *ngFor loop over an array of 5 fields <div *ngFor="let field of this.fields" > <div class="block"&...
DeclanMcD's user avatar
  • 1,586
8 votes
3 answers
9k views

With the recent Angular update (we are using v. 17) we started to use Angular signals in our application. There is one problem we are stumpling accross, that we are not sure how to handle properly. We ...
Julia's user avatar
  • 267
1 vote
1 answer
86 views

I am having a problem with Angular not detecting when an array has no elements. Parent: <child [trainingData]="trainingData" > </child> Child: @Input() set ...
Mark's user avatar
  • 5,020
0 votes
1 answer
126 views

Generally while passing data from child to parent or parent to child we use @input and @output what are the benefits @input and @output have over subject or services apart from it's the most organic ...
Chinmay Yogi's user avatar
1 vote
1 answer
80 views

I am not able to show the performance difference using default and onPush change detection method. Is there is way to prove this concept? I tried searching online and YouTube however I am not able to ...
Deepak Sharma's user avatar
0 votes
1 answer
744 views

I'm developing an Angular application with a sidebar component that shows different menu items based on the user's data. The menu should only show an "Empresas" option if the user hasn't ...
Alejandro Alonso's user avatar
3 votes
1 answer
181 views

We've built a library at work called ngx-observable-lifecycle. It's basically hooking into all the native hooks of Angular components (ngOnInit, ngOnChanges, etc) and then gives an object where each ...
maxime1992's user avatar
1 vote
0 answers
78 views

Repro: https://stackblitz.com/edit/angular-rjxytd?file=src%2Fmain.ts I'm trying to use a dynamic @ViewChild field in an *ngIf binding, but the mere act of mentioning it in a template throws ...
Eugene's user avatar
  • 1,031
2 votes
1 answer
92 views

My component (let's call it cmp) has change detection set to "onPush". Its template contains a <mat-menu> with projected content inside. In that content, some div has a click event ...
Stphane's user avatar
  • 3,476
2 votes
2 answers
4k views

In the closable section of prime ng's tabview documentation, I see that when I remove the last tab, it goes to the first tab. My question is: How can I make it go to the tab on the left instead of the ...
Merve Tağcı's user avatar
1 vote
1 answer
56 views

I would like to understand, why the change deduction is not works, on keyup while integrate the filter using the input value. when the key ups, I am getting no of empty string popups to prevent the ...
user2024080's user avatar
  • 5,171
6 votes
1 answer
6k views

I am trying to work with Angular 17 effects using the toSignal() interop class to convert an Observable to a signal. I am registering an effect for that signal in the constructor, and I am expecting ...
David's user avatar
  • 63
3 votes
1 answer
196 views

I'm experiencing a slight issue with Angular and its change detection. I've got a very simple form that allows for additional input containers to be added. Yet, every time I click the add button I get ...
Venfi Oranai's user avatar
1 vote
1 answer
66 views

Parent html <list-component [items]="birds$ | async"></list-component> list component ts export class ListComponent implements DoCheck { @Input() items: ListItem[]; ...
Babulaas's user avatar
  • 899
0 votes
1 answer
353 views

In my app I have a Component that simply gets some value async via some service and displays it to the user. The code of the Component looks like the following: @Component({ changeDetection: ...
Francesco Borzi's user avatar
6 votes
1 answer
6k views

With the addition of Signals and the way they improve Change Detection, I'm wondering if I should start using Signals only (instead of class variables) in order to display data in my component ...
bvdh's user avatar
  • 195
1 vote
2 answers
212 views

Hi I am trying to wrap the mat radio button and write unit test but im now blocked on this: "should uniquely select radios by a name". I am trying to test the wrapped component with some ...
luigi denora's user avatar
1 vote
2 answers
3k views

I am attempting to utilise Angular's new Signal feature but struggling with reactivity. Current Method From understanding so far, to work with RxJS and Signals correctly the output of this observable ...
gt57096's user avatar
  • 11
1 vote
1 answer
71 views

In Angular (15), if we have a component property (@Input) that is an object - for instance [config]="{ size: 10, label: 'hello' }" - is the object that is instantiated in HTML being ...
NoRyb's user avatar
  • 1,554
1 vote
1 answer
430 views

In our Angular application, we have an internal library that has several components (like headers...) we use them dynamically in our Angular applications, we passing to them some properties (like ...
Yahya Rechaki's user avatar

1
2 3 4 5
8