I\'d like to ask you for help. I omitted code that I assume is not important. Let\'s imagine TS file that contains service calls:
// file: someService.ts
<
You could try to import this way:
import {Observable} from 'rxjs/Rx';
instead of:
import {Observable} from 'rxjs/Observable';
You should also use an array to provide your observables to the forkJoin method:
ngOnInit() {
Observable.forkJoin([this.m1,this.m2])
.subscribe(data => {
this.myFunction(data[0], data[1]);
requestAnimationFrame(this.renderLoop);
});
}
And do not forget to specify inputs in @Component:
@Component({
inputs: ['m1', 'm2']
})