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
Store the list of workspaces.
- Parameters:
workspaces
— the array containing all the workspaces data
setWorkspace(id: string)
Set the id of the workspace it is connected to.
- Parameters:
id
— the workspace’s id
sleep(ms: number)
Pause the execution of a function for the given amount of milliseconds.
- Parameters:
ms
— the duration of the sleep, in milliseconds - Returns:
Promise<T>
—