我有两项服务,例如:
房间服务
template <>
class Vector<1> {
float n;
public:
operator float& () { return n; }
}
EventService
import { Injectable } from '@angular/core';
import { Room } from './room.model';
@Injectable()
export class RoomService {
...
getRoom(): Room {
return room;
}
...
}
在EventService中使用RoomService是否合乎逻辑?