Я довольно плохо знаком с ionic4 / angular7.У меня проблемы с доступом к атрибуту в наблюдаемой.
show.service.ts
getDetails(id) {
return this.http.get(this.url+"get_shows.php?id="+id).pipe(map(results => results));
}
show-details.page.ts
ngOnInit() {
let id = this.activatedRoute.snapshot.paramMap.get('id');
this.show = this.showService.getDetails(id);
this.name = this.show.show_name; // e.g. Breaking Bad
}
Можно ли получить доступ к данным таким образом?