dematerialize
연산자(operator) 정의: dematerialize(): Observable
Turn notification objects into notification values.
Examples
Example 1: Converting notifications to values
( jsBin | jsFiddle )
const source = Rx.Observable
.from([
Rx.Notification.createNext('SUCCESS!'),
Rx.Notification.createError('ERROR!')
])
.dematerialize();
const subscription = source.subscribe({
next: val => console.log(`NEXT VALUE: ${val}`),
error: val => console.log(`ERROR VALUE: ${val}`)
});
Additional Resources
Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/operator/demterialize.ts