0

I have this function and now I want to send the response of this function to paymentpage , Is there any way to pass it from function itself ..

itemsOnCart(event) {
        let myarray = [1 ,2, 3]
        const base_URL = 'http://localhost:9007/api/excel/getProductsId'
        this.http.post(base_URL, myarray).subscribe(r =>
          this.router.navigateByUrl('/paymentpage')
        )
      }

0 Answers0