| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import { Component } from '@angular/core';
- @Component({
- selector: 'app-main-page',
- templateUrl: './main-page.component.html',
- styleUrls: ['./main-page.component.css'],
- })
- export class MainPageComponent {
- songs: string[] = [
- 'Song 1',
- 'Song 2',
- 'Song 3',
- // Add more songs here
- ];
- searchQuery: string = '';
- information: string = '';
- get filteredSongs(): string[] {
- if (this.searchQuery.trim() === '') {
- return this.songs;
- } else {
- return this.songs.filter(song =>
- song.toLowerCase().includes(this.searchQuery.toLowerCase())
- );
- }
- }
- selectedSongInformation: string = '';
- // Other component methods and lifecycle hooks
- displaySongInformation(song: string): void {
- // Logic to fetch and set the song information based on the selected song
- // Replace the code below with your own implementation
- }
- download() {
- // Implement your download logic here
- }
- upload() {
- // Implement your upload logic here
- }
- generatePdf() {
- // Implement your PDF generation logic here
- }
- }
|