This is a brief explanation below.
By clicking on the record in the browser screen I can not load the records according to ID.
This is a detailed application below;
View the gif file
YoumaynoticethattherearetworecordsbeingloadedandwhenyouclickontherecordsitcanloadintotheURLtherecordID,whenviewingtheconsoleyounoticethatitliststherecordsofthedatabasethatareonlytwoeven.
Theproblemisthatbyputtinginthepage{{restaurant?.name}}
itdoesnotprintthevalueofthebank.
IdonotknowwhatI'mdoingwrong,thisismyclassofservices;
restaurantById(id:string):Observable<Restaurant>{returnthis.http.get('${this.url}/restaurants/${name}').map(response=>response.json().restaurants).catch(ErrorHandler.handlerError)}
Thisismycomponentclassaccordingtowebpage.
ngOnInit(){this.restaurantService.restaurantById(this.route.snapshot.params['id']).subscribe(restaurant=>this.restaurant=restaurant)}
THAT IS MY REPOSITORY
I'm sorry to have put it in the box because sometimes people do not realize I've put the link from my repository.
The page is inside the restaurant-detail package and the service is the restaurant.service.ts
I'll be expecting a comeback, I need a lot of help.
SERVER REPLACE