11import { OperatorDoc } from '../operator.model' ;
22
33export const combineAll : OperatorDoc = {
4- ' name' : 'combineAll' ,
5- ' operatorType' : 'combination' ,
6- ' signature' : 'public combineAll(project: function): Observable' ,
7- ' parameters' : [
4+ name : 'combineAll' ,
5+ operatorType : 'combination' ,
6+ signature : 'public combineAll(project: function): Observable' ,
7+ parameters : [
88 {
9- ' name' : 'project' ,
10- ' type' : 'function' ,
11- ' attribute' : 'optional' ,
12- ' description' : `An optional function to map the most recent values from each inner Observable into a new result.
9+ name : 'project' ,
10+ type : 'function' ,
11+ attribute : 'optional' ,
12+ description : `An optional function to map the most recent values from each inner Observable into a new result.
1313 Takes each of the most recent values from each collected inner Observable as arguments, in order.`
1414 }
1515 ] ,
16- ' marbleUrl' : 'http://reactivex.io/rxjs/img/combineAll.png' ,
17- ' shortDescription' : {
18- ' description' : `
19- Flattens an Observable-of-Observables by applying <a href="/operators# combineLatest" class="markdown-code">combineLatest</a>
16+ marbleUrl : 'http://reactivex.io/rxjs/img/combineAll.png' ,
17+ shortDescription : {
18+ description : `
19+ Flattens an Observable-of-Observables by applying <a href="/operators/ combineLatest" class="markdown-code">combineLatest</a>
2020 when the Observable-of-Observables completes.` ,
21- ' extras' : [ ]
21+ extras : [ ]
2222 } ,
23- ' walkthrough' : {
24- ' description' : `
23+ walkthrough : {
24+ description : `
2525 <p>
2626 Takes an Observable of Observables, and collects all Observables from it.
2727 Once the outer Observable completes, it subscribes to all collected
28- Observables and combines their values using the <a href="/operators# combineLatest" class="markdown-code">combineLatest</a>
28+ Observables and combines their values using the <a href="/operators/ combineLatest" class="markdown-code">combineLatest</a>
2929 strategy, such that:
3030 </p>
3131 <ul>
@@ -46,10 +46,11 @@ export const combineAll: OperatorDoc = {
4646 </ul>
4747 `
4848 } ,
49- ' examples' : [
49+ examples : [
5050 {
51- 'name' : 'Map two click events to a finite interval Observable, then apply <span class="markdown-code">combineAll</span>' ,
52- 'code' : `
51+ name :
52+ 'Map two click events to a finite interval Observable, then apply <span class="markdown-code">combineAll</span>' ,
53+ code : `
5354 const clicks = Rx.Observable.fromEvent(document, 'click');
5455 const higherOrder = clicks.map(ev =>
5556 Rx.Observable.interval(Math.random()*2000).take(3)
@@ -58,9 +59,12 @@ export const combineAll: OperatorDoc = {
5859 const result = higherOrder.combineAll();
5960 result.subscribe(x => console.log(x));
6061 ` ,
61- 'externalLink' : { 'platform' : 'JSBin' , 'url' : 'http://jsbin.com/peparawuvo/1/embed?js,console,output' }
62+ externalLink : {
63+ platform : 'JSBin' ,
64+ url : 'http://jsbin.com/peparawuvo/1/embed?js,console,output'
65+ }
6266 }
6367 ] ,
64- ' relatedOperators' : [ 'combineLatest' , 'mergeAll' ] ,
65- ' additionalResources' : [ ]
68+ relatedOperators : [ 'combineLatest' , 'mergeAll' ] ,
69+ additionalResources : [ ]
6670} ;
0 commit comments