Answers for "avoid hitting multiple same api hits angular"

0

avoid hitting multiple same api hits angular

@Injectable()
export class SomeService {

  constructor(
    private http: Http
    ) {
  }

  get(id: number) {
    return this.http.get('http://somedomain/somemodel/${id}.json');
  }

}
Posted by: Guest on October-19-2021

Code answers related to "avoid hitting multiple same api hits angular"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language