I Have called a API and returned data successfully. But with that JSON data, I cant bind with the view. Below is the HTML Template
<StackLayout>
<Label [text]="users.BookingReferenceID"> </Label>
</StackLayout>
This is my app.component.ts
this._dataService.Search(id)
.subscribe((data) => this.users = JSON.stringify(data),
error => console.log(error),
() => {(
console.log('Data Retrieved successfully' + this.users))
});
This is the data returned from the api
{"Collection":
[{"IsIndexData":false,
"DocumentNumber":"2300000002018",
"BookingReferenceID":"CID0EX",
"IssuingDate":"2016-11-04T00:00:00",
"Errors":null,"Information":null,
"Warnings":null}],
"Errors":null,
"Information":null,
"Warnings":null}
Always I will get undefined in the view..Please help me