mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-16 06:01:56 +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 { MarkdownService } from '../markdown.service';
|
||||||
import { WebSocketService } from '../websocket.service';
|
import { WebSocketService } from '../websocket.service';
|
||||||
|
|
||||||
class Message {
|
import { Message } from './message';
|
||||||
originator: string;
|
|
||||||
timestamp: Date;
|
|
||||||
message: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-logs',
|
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