Skip to content

Instantly share code, notes, and snippets.

@pmbanugo
Created January 6, 2020 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmbanugo/aa9c05c8034ebfec3e309a67ca397c4a to your computer and use it in GitHub Desktop.
Save pmbanugo/aa9c05c8034ebfec3e309a67ca397c4a to your computer and use it in GitHub Desktop.
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