mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 01:02:54 +00:00 
			
		
		
		
	Move Message class to separate file
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user