Frontend API

@Injectable() export class AppDataService

The AppDataService store the data of the app that need to be accessible from anywhere in the program.

These data include the workspace it is connected to. Later on, it should keep track of the connected user.

Created by antoine on 09/06/17.

storeWorkspacesInfo (workspaces: Array): void

Store the list of workspaces.

setWorkspace(id: string)

Set the id of the workspace it is connected to.

sleep(ms: number)

Pause the execution of a function for the given amount of milliseconds.