Sheffield Web Programmer

Turn a cold observable into a shared hot in Angular 6

May 14, 2019

Rather than have multiple backend calls a cold http service call can be turned into a hot shared multiplex service using the following

    public doGetSharedProductsService() {
        return this.ProductService.getProducts().pipe(share());
    }