my-chat-room/apps/chat-room/src/app/app.component.ts

14 lines
394 B
TypeScript
Raw Normal View History

2020-10-09 13:32:53 +00:00
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) {}
}