Created
January 6, 2020 16:01
-
-
Save pmbanugo/aa9c05c8034ebfec3e309a67ca397c4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class AppComponent { | |
readonly bot: User = { | |
id: 0, | |
name: "bot" | |
}; | |
user: User = { id: Date.now().toString() }; | |
messages: Message[] = [ | |
{ | |
author: this.bot, | |
timestamp: new Date(), | |
text: "Hello! Please enter a name in order to start a chat" | |
} | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment