14 lines
394 B
TypeScript
14 lines
394 B
TypeScript
import { Component } from '@angular/core';
|
|
import { HttpClient } from '@angular/common/http';
|
|
import { Message } from '@chat-room/api-interfaces';
|
|
|
|
@Component({
|
|
selector: 'chat-room-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.scss'],
|
|
})
|
|
export class AppComponent {
|
|
hello$ = this.http.get<Message>('/api/hello');
|
|
constructor(private http: HttpClient) {}
|
|
}
|