I'm using json placeholder fake api (https://jsonplaceholder.typicode.com/users). I need the code (service file and ts file) to get only single record of data.I already fetched the all data from api.. Please help me....I am a beginner in angular
1 Answer
use this
https://jsonplaceholder.typicode.com/users/1
for 1st id
or
https://jsonplaceholder.typicode.com/users/${id}
for dynamic