From f2e36c8dd49330ed59774077e9e1828e82af6ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Tue, 6 Mar 2018 13:40:58 +0100 Subject: [PATCH] Create local database for saving rooms --- src/app/in-memory-data.service.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/app/in-memory-data.service.ts diff --git a/src/app/in-memory-data.service.ts b/src/app/in-memory-data.service.ts new file mode 100644 index 000000000..47bfb7557 --- /dev/null +++ b/src/app/in-memory-data.service.ts @@ -0,0 +1,27 @@ +import { InMemoryDbService } from 'angular-in-memory-web-api'; + +export class InMemoryDataService implements InMemoryDbService { + createDb() { + const rooms = [ + { + id: 'test', + revision: '1', + shortId: 't', + abbreviation: 'abb', + name: 'testroom', + description: 'this is a test room', + closed: false + }, + { + id: 'test1', + revision: '11', + shortId: 't1', + abbreviation: 'abb1', + name: 'testroom1', + description: 'this is a test room1', + closed: false + } + ]; + return {rooms}; + } +} -- GitLab