mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 02:51:57 +00:00
Move Message class to separate file
This commit is contained in:
parent
1c1bddd955
commit
d5e14d0d8a
@ -2,11 +2,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
import { MarkdownService } from '../markdown.service';
|
||||
import { WebSocketService } from '../websocket.service';
|
||||
|
||||
class Message {
|
||||
originator: string;
|
||||
timestamp: Date;
|
||||
message: string;
|
||||
}
|
||||
import { Message } from './message';
|
||||
|
||||
@Component({
|
||||
selector: 'app-logs',
|
||||
|
5
src/app/logs/message.ts
Normal file
5
src/app/logs/message.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export class Message {
|
||||
originator: string;
|
||||
timestamp: Date;
|
||||
message: string;
|
||||
}
|
Loading…
Reference in New Issue
Block a user