Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
docs(forms): warn the user about getting old values and show how to a…
…void
  • Loading branch information
sr5434 authored May 3, 2023
commit d0148e7c06fb25e6702a7ed6e53da20a501530d3
5 changes: 4 additions & 1 deletion packages/forms/src/model/abstract_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,10 @@ export abstract class AbstractControl<TValue = any, TRawValue extends TValue = T
/**
* A multicasting observable that emits an event every time the value of the control changes, in
* the UI or programmatically. It also emits an event each time you call enable() or disable()
* without passing along {emitEvent: false} as a function argument.
* without passing along {emitEvent: false} as a function argument. When accessing a value,
* the emit happens when a value of a given control changes. Parent controls are updated after
* that, so if you try to access parent control value from the valueChanges or stateChanges
* callback you may recieve an old value..
*/
public readonly valueChanges!: Observable<TValue>;

Expand Down