how do i force angular change detection?
hey everyone, i'm super new to angular and was reading the 'angular component not updating' thread. i'm running into a similar issue where my component just isn't reflecting data changes, even after i update its input property. it feels like the change detection isn't kicking in.
i've got a simple parent-child setup, and when the parent updates a value, the child stays stale. here's a dummy snippet of what i mean:
// parent.component.ts
this.childData = 'new value';
// child.component.ts
// @Input() data: string; // still shows old value
is there a common way to manually trigger updates, or am i missing something fundamental about how angular handles change detection for inputs?
anyone faced this before?
0 Answers
No answers yet.
Be the first to provide a helpful answer!