Help in post to drupal



how are you ?

i’m new in ionic and javascript so i have json file from drupal8 and this some of content in the json file

        "title": "اختناق مروري",
        "field_case_details": "<p>حالة اختناق مروري في منى</p>\n",
        "field_hajj_program_number": "<a href=\"/taxonomy/term/2\" hreflang=\"en\">حملة عون</a>",
        "field_image": "",
        "field_location": "منى-مكة",
        "field_name": "سلمى",
        "field_phone_number": "<a href=\"tel:058421658\">058421658</a>"

and i use this code in ts file for get method and it work and bring the content to me

export class LostPage {

  public items:any;
  constructor(public navCtrl: NavController, public http: HttpClient) {

    let url='MyJsonURl';
    let data: Observable<any> = this.http.get(url);
    data.subscribe(result =>  {
      this.items = result;


and now i want to post content form ionic to drupal i make this html code

    <form (ngSubmit)="PostData()">
        <ion-input type="text" [(ngModel)]="title" name="title"></ion-input>
        <ion-input type="text" [(ngModel)]="field_case_details" name="case_datails"></ion-input>
        <ion-input type="text" [(ngModel)]="field_location" name="loaction"></ion-input>

      <button ion-button type="submit" block>add content</button>


and this code in ts file

export class AddtrafficPage {

  public items:any;
  title: any;
  field_case_details: any;
  field_location: any;
  mydata: any;
  constructor(public navCtrl: NavController, public http: HttpClient , public restProvider: ResolvedReflectiveProvider) {

    let postParams =  {
    "title": this.title,
    "case_datails": this.field_case_details,
    "loaction": this.field_location
    .subscribe(data => {
      this.PostData =data.json()
      let response = this.mydata.code;

    }, error => {
      // Error getting the data


but when i click on submit button no thing happen can you help me to post what i wrote in ionic to drupal and for your knowledge i gave permission for any one to add content in drupal