import Service from '@ember/service' ; export default class ModalsPlayerService extends Service { open : boolean = false ; show ( ) { this . set ( 'open' , true ) ; } hide ( ) { this . set ( 'open' , false ) ; } } declare module '@ember/service' { interface Registry { 'modals/player' : ModalsPlayerService ; } }