From 11b004e3b7ffdee32ba8489590a3331e13dd5735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A1lint=20Bokros?= Date: Thu, 1 Feb 2018 16:38:56 +0100 Subject: [PATCH] Move FSMUpdate class to separate file --- src/app/fsmupdate.service.ts | 7 +------ src/app/fsmupdate.ts | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 src/app/fsmupdate.ts diff --git a/src/app/fsmupdate.service.ts b/src/app/fsmupdate.service.ts index 2a107fd..6423ca5 100644 --- a/src/app/fsmupdate.service.ts +++ b/src/app/fsmupdate.service.ts @@ -1,12 +1,7 @@ import { Injectable } from '@angular/core'; import { WebSocketService } from './websocket.service'; - -class FSMUpdate { - current_state: string; - valid_transitions: object; -} - +import { FSMUpdate } from './fsmupdate'; @Injectable() export class FSMUpdateService { diff --git a/src/app/fsmupdate.ts b/src/app/fsmupdate.ts new file mode 100644 index 0000000..bf658ac --- /dev/null +++ b/src/app/fsmupdate.ts @@ -0,0 +1,4 @@ +export class FSMUpdate { + current_state: string; + valid_transitions: object; +}