I am using angular 6 as well as read about pipe but didn't get any proper syntax to write zip and imported zip as well.
Error: Property 'zip' does not exist on type 'typeof Observable'.
import { zip } from 'rxjs/operators';
callZipFunction(): void {
Observable
.zip( this.commonService.GetMethodA(), this.commonService.GetMethodB())
.subscribe(([a,b])=>{
console.log(a);
console.log(b);
});
}
import { zip } from 'rxjs';
and remove theObservable
and the dot in front of.zip
... – dmcgrandle