📅  最后修改于: 2022-03-11 14:48:19.884000             🧑  作者: Mango
@Injectable()
export class SomeService {
constructor(
private http: Http
) {
}
get(id: number) {
return this.http.get('http://somedomain/somemodel/${id}.json');
}
}