import { Observable } from 'rxjs/Observable' ; import { Service } from 'typedi' ; import { ISetting , SettingRepository } from '../repositories/setting.repository' ; export { ISetting } ; export interface ISettingService { readonly settings$ : Observable < ISetting > ; } @ Service ( ) export class SettingService implements ISettingService { readonly settings$ = this . repo . getDictionary ( ) ; constructor ( private repo ) { } }