Innovating Digital Experiences

Blending creativity and technology to deliver software solutions and engaging media.

game-service.ts
app.ts
@Injectable({
	providedIn: 'root',
})
export class GameService {
	constructor(private readonly db: AngularFirestore) {}

	getGame(gameURL: string): Observable<Game> {
	return this.db
		.collection<Game>(COLLECTION)
		.doc<Game>(gameURL.toLowerCase())
		.valueChanges();
	}
}