📜  避免命中多个相同的 api 命中角 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:19.884000             🧑  作者: Mango

代码示例1
@Injectable()
export class SomeService {

  constructor(
    private http: Http
    ) {
  }

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

}