import { Component } from '@angular/core'; import { OverlayPanel } from 'primeng/overlaypanel'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] }) export class AppComponent { constructor() { } tutorials: Tutorial[] = []; cols: any[] = []; ngOnInit() { this.tutorials = [ { title: 'Queue', category: 'Data Structure', rating: 8, }, { title: 'Circularly LinkedList', category: 'Data Structure', rating: 1, }, { title: 'Doubly LinkedList', category: 'Data Structure', rating: 3, }, { title: 'Singly LinkedList', category: 'Data Structure', rating: 5, }, { title: 'Doubly Ended Queue', category: 'Data Structure', rating: 10, }, { title: 'Binary Search Tree', category: 'Data Structure', rating: 2, }, ]; this.cols = [ { field: 'title', header: 'Title' }, { field: 'category', header: 'Category' }, { field: 'rating', header: 'Rating' }, ]; } } export interface Tutorial { title?: string; category?: string; rating?: number; }