import { Talk } from "./model" ; export class WatchService { watched : { [ k ] : boolean ; } = { } ; watch ( talk ) { console . log ( "watch" , talk . id ) ; this . watched [ talk . id ] = true ; } isWatched ( talk ) { return this . watched [ talk . id ] ; } }