Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 62e7e6b

Browse files
Closing Issue #849
1 parent 01adf66 commit 62e7e6b

2 files changed

Lines changed: 66 additions & 14 deletions

File tree

doc/api/core/operators/dematerialize.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ Dematerializes the explicit notification values of an observable sequence as imp
99
#### Example
1010
```js
1111
var source = Rx.Observable
12-
.from([
13-
Rx.Notification.createOnNext(42),
14-
Rx.Notification.createOnError(new Error('woops'))
15-
])
16-
.dematerialize();
12+
.from([
13+
Rx.Notification.createOnNext(42),
14+
Rx.Notification.createOnError(new Error('woops'))
15+
])
16+
.dematerialize();
1717

1818
var subscription = source.subscribe(
19-
function (x) {
20-
console.log('Next: ' + x.toString());
21-
},
22-
function (err) {
23-
console.log('Error: ' + err);
24-
},
25-
function () {
26-
console.log('Completed');
27-
});
19+
function (x) {
20+
console.log('Next: %s', x);
21+
},
22+
function (err) {
23+
console.log('Error: %s', err);
24+
},
25+
function () {
26+
console.log('Completed');
27+
});
2828

2929
// => Next: 42
3030
// => Error: Error: woops
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
### `Rx.Observable.prototype.materialize()`
2+
[Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/materialize.js "View in source")
3+
4+
Materializes the implicit notifications of an observable sequence as explicit notification values.
5+
6+
#### Returns
7+
*(`Observable<Notification>`)*: An observable sequence containing the materialized notification values from the source sequence.
8+
9+
#### Example
10+
```js
11+
var source = Rx.Observable.of(1,2,3).materialize();
12+
13+
var subscription = source.subscribe(
14+
function (x) {
15+
console.log('Next: %s', x);
16+
},
17+
function (err) {
18+
console.log('Error: %s', err);
19+
},
20+
function () {
21+
console.log('Completed');
22+
});
23+
24+
// => Next OnNext(1)
25+
// => Next OnNext(2)
26+
// => Next OnNext(3)
27+
// => Next OnCompleted()
28+
// => Completed
29+
```
30+
### Location
31+
32+
File:
33+
- [`/src/core/linq/observable/materialize.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/src/core/linq/observable/materialize.js)
34+
35+
Dist:
36+
- [`rx.all.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.all.js)
37+
- [`rx.all.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.all.compat.js)
38+
- [`rx.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.js)
39+
- [`rx.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.compat.js)
40+
- [`rx.lite.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.lite.js)
41+
- [`rx.lite.compat.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/dist/rx.lite.compat.js)
42+
43+
NPM Packages:
44+
- [`rx`](https://www.npmjs.org/package/rx)
45+
46+
NuGet Packages:
47+
- [`RxJS-Complete`](http://www.nuget.org/packages/RxJS-Complete/)
48+
- [`RxJS-Main`](http://www.nuget.org/packages/RxJS-Main/)
49+
- [`RxJS-Lite`](http://www.nuget.org/packages/RxJS-Lite/)
50+
51+
Unit Tests:
52+
- [`/tests/observable/materialize.js`](https://github.com/Reactive-Extensions/RxJS/blob/master/tests/observable/materialize.js)

0 commit comments

Comments
 (0)