Revision 55964
Added by Argiro Kokogiannaki almost 5 years ago
deletedByInference.component.ts | ||
---|---|---|
2 | 2 |
import {ElementRef, Input} from '@angular/core'; |
3 | 3 |
import {ActivatedRoute, Router} from '@angular/router'; |
4 | 4 |
|
5 |
import {Observable} from 'rxjs/Observable';
|
|
5 |
import {Observable} from 'rxjs'; |
|
6 | 6 |
|
7 | 7 |
import {EnvProperties} from '../../../utils/properties/env-properties'; |
8 | 8 |
import {DeletedByInferenceResult} from '../../../utils/entities/deletedByInferenceResult'; |
... | ... | |
11 | 11 |
|
12 | 12 |
import {DeletedByInferenceService} from './deletedByInference.service'; |
13 | 13 |
|
14 |
//import {zip} from 'rxjs'; |
|
15 |
import 'rxjs/add/observable/zip'; |
|
14 |
import {zip} from 'rxjs'; |
|
16 | 15 |
|
16 |
|
|
17 | 17 |
@Component({ |
18 | 18 |
selector: 'deletedByInference', |
19 | 19 |
template: ` |
... | ... | |
152 | 152 |
allRequests.push(this._deletedByInferenceService.getDeletedByInferencePublications(id, this.properties)); |
153 | 153 |
} |
154 | 154 |
|
155 |
Observable.zip.apply(null, allRequests).subscribe(
|
|
155 |
zip.apply(null, allRequests).subscribe( |
|
156 | 156 |
// this._deletedByInferenceService.getDeletedByInferencePublications(id, this.properties).subscribe( |
157 | 157 |
data => { |
158 | 158 |
this.results = data; |
Also available in: Unified diff
[Library|Trunk]
Merge into trunk branch angular7 rev 55729