Cześć tworzę witrynę API (.net core) UI (ANgular). Mam taki problem stworzyłem endpoint w API do wyświetlania szczegółów. Lecz mam problem z Angularem. Mam listę elementów. I chciałbym aby nazwa elementu była linkiem do szczegółów elementu. Stworzyłem w services taką funkcję
getJobOfferDetails(id: string) {
return this.http.get(`https://localhost:44322/JobOffer/offers-details/${id}`, {});
Oraz nowy komponent i nie wiem co dalej. Jak mam stworzyć tego linka oraz do funkcji ngInit tego komponentu dałem:
this.jobService.getJobOfferDetails(this.id).subscribe(response=>
{
this.data = response;
});
Nie wiem skąd te id ma mieć wartość :(