Skip to content

breeze-client / propertyChanged$

Function: propertyChanged$() ​

propertyChanged$(entity): Observable<PropertyChangedEventArgs>

Defined in: src/rxjs/breeze-rxjs.ts:125

EntityAspect.propertyChanged as an Observable: each property of one entity that changes.

ts
propertyChanged$(order).pipe(
  filter(e => e.propertyName === 'shipCountry'),
).subscribe(() => recalculateTax(order));

A live subscription keeps entity reachable, as any subscription to it would. Unsubscribe when the screen showing it goes away.

Parameters ​

entity ​

Entity

Returns ​

Observable<PropertyChangedEventArgs>

Released under the MIT License.