import { Injectable } from 'angular-ts-decorators' ; import autobind from 'autobind-decorator' ; import { WorkingContext } from './working.enum' ; import { WorkingStatus } from './working.interface' ; @ autobind @ Injectable ( 'WorkingService' ) export class WorkingService { status : WorkingStatus ; constructor ( ) { this . status = { activated : false } ; } hide ( ) { this . status = { activated : false } ; } show ( context ? ) { this . status = { activated : true , context } ; } }