// post method by using api in ionic get specific data
import { Component } from '@angular/core';
import { NavController, NavParams, App, LoadingController } from 'ionic-angular';
import { HttpClient, HttpErrorResponse } from '../../../node_modules/@angular/common/http';
@Component({
selector: 'page-product',
templateUrl: 'product.html'
})
export class ProductPage {
obj;
// your api could be here
url: string ="https://---------------";
// let suppose my id is "53" and im getting data from that id so if i send object of my id so api will send me data from that id
myId = 53;
This file has been truncated. show original