Skip to main content

All Questions

1 vote
1 answer
253 views

Angular 18 input signal instead of @Input

Hi I'm having doubt I'm using input signal instead of @Input I'm sending data from parent component one as simple variable like and another as signal name = "ajai" name=signal("ajai&...
Ajai Ramalingam's user avatar
0 votes
1 answer
622 views

Angular signals can replace rxJS operators for manage api call and response?

Is there any possibilities to replace pipe, map, observable of rxjs operators with Angular signals, while manage api call and their response according to requiremnt. Tried for manage api call response,...
PRATIK M.'s user avatar
12 votes
7 answers
9k views

Angular Signals - debounce in effect()

I have a signal that is bound to an input field. I'm trying to define an effect() for the searchTerm, but because it's user input, I'd like to debounce that effect (i.e. rxjs) so that the search doesn'...
Layne Robinson's user avatar
3 votes
2 answers
6k views

EventEmitter vs signal

I just updated my application to Angular 16, which uses a lot of EventEmitter in a service to show where the user is in the app (setting Boolean values). signals were added in this release and I am ...
xinthose's user avatar
  • 3,889
5 votes
1 answer
2k views

How does Angular Signals affect RXJS Observables and what happens to change detection in this case

I am trying to switch to Signals in my Angular App and i currently have issues finding good practices and i also experienced (at least for me) unexpected behaviour. This is a snippet of my code ...
Tilman Adam's user avatar
2 votes
1 answer
2k views

Can't set signal from within async piped Observable

When I try setting a signal value from within an Observable that gets piped to async, I get the error: Error: NG0600: Writing to signals is not allowed in a computed or an effect by default. Use ...
Trevortni's user avatar
  • 748
2 votes
1 answer
2k views

Angular 16 signals side effects

Before signals, I had an observable that I would watch to trigger a FormControl's editable property, like this: this.#isItEditor$ .pipe(takeUntilDestroyed(this.#destroyRef)) .subscribe(x => ...
Gargoyle's user avatar
  • 10.4k
2 votes
1 answer
11k views

Why Converting Observable to WritableSignal in Angular 16 throw error of missing properties

I have the following simple code on my component: import {Component, effect, signal, WritableSignal} from '@angular/core'; import {AppService} from "../app.service"; import {toSignal} from &...
user avatar
4 votes
1 answer
2k views

Is there any sense already for using signals in Angular?

According to RFC3 signal-based components with change detection strategy based fully on signals are planned as next thing to be released. So as of now, with zone-based change detection strategy, is ...
ThaFog's user avatar
  • 527