import { CommonModule } from '@angular/common'; import { Component } from '@angular/core'; import { ChatThread } from '../chat-thread/chat-thread'; import { ThreadsService } from '../services/threads.service'; import { Observable } from 'rxjs'; @Component({ selector: 'app-chat-threads', imports: [CommonModule, ChatThread], templateUrl: './chat-threads.html', styleUrl: './chat-threads.css', }) export class ChatThreads { threads: Observable; constructor(public threadsService: ThreadsService) { this.threads = threadsService.orderedThreads; } } // class