Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
1 answer
151 views

I thought @input was supposed to set off the change detector when it is used? When I use the mask input to "disable" this component from a parent component, it just keeps spinning with mat-...
1 vote
1 answer
139 views

I am using Angular 18. I have an array of "containers" containing, beside other info, an array of "products" each. I use @for to show a container-component for each container, and ...
1 vote
1 answer
299 views

My reload component: import {ChangeDetectionStrategy, Component, input, output, resource} from '@angular/core'; import {ErrorService} from "../error.service"; @Component({ selector: 'a50-...
0 votes
0 answers
16 views

I need to update a css class in a component whenever it is added. Therefor I have a query list on my main component so I can listen to changes to all child components: @ViewChildren(...
1 vote
2 answers
56 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 ...
1 vote
1 answer
35 views

I have a viewchild ref in my .ts file like, @ViewChild('someDialog') someDialog: ElementRef; and in the .html file, I'm passing the reference back to a function like, <abc-dialog #someDialog (...
1 vote
1 answer
83 views

My question is about angular change detection and zonejs: is zonejs used by the (click) event below? @Component({ template: ` <button (click)="changeName()">Change name</...
1 vote
1 answer
674 views

I have an Angular v18.2 application that uses zoneless change detection: export const appConfig: ApplicationConfig = { providers: [provideExperimentalZonelessChangeDetection(), provideRouter(...
2 votes
1 answer
232 views

I know it is not a good practice to call expressions from a template in angular, because angular cannot predict whether the return value of a function has changed, so it needs to execute the function ...
5 votes
1 answer
2k views

With the traditional @Input() decorator, one can use the ngChanges to do something if the value change. In this case, I'm using a component in the ng-bootstrap modal. The modal contains a form. When ...
1 vote
0 answers
41 views

I'm creating a component that has a rather complex, nested configuration export type LayerGroup = { name: string; layers: Array<VectorLayerDefinition | TileLayerDefinition | LayerGroup>; ...
1 vote
1 answer
92 views

There is a simple Angular web app that uses ng-template. It uses ngTemplateOutlet directive. A handler method (loadtemplate) is set for this directive, but this method is called multiple times when a ...
1 vote
0 answers
162 views

I have custom Angular Component modal-component that serves as a proxy for MatModalDialog with ngTemplateOutlet as body for mat-dialog-content. <mat-dialog-content class="modal-dialog-medium&...
-1 votes
2 answers
42 views

I'm encountering an issue with updating a component property (isEdit) within the subscribe callback of an event emitter in my Angular application. Context: I have a CreateComponent responsible for ...
2 votes
2 answers
663 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"&...

15 30 50 per page
1
2 3 4 5
...
34

AltStyle によって変換されたページ (->オリジナル) /