This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | async function myAsyncFunction() { | |
| console.log('Start of async function'); | |
| // Your asynchronous code here | |
| // Introduce a delay of 5 seconds | |
| await new Promise(resolve => setTimeout(resolve, 5000)); | |
| console.log('End of async function'); | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | https://www.youtube.com/watch?v=EY0Nw06xyt8 | |
| https://www.youtube.com/watch?v=5xxMBOE3LNs | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | https://stackoverflow.com/questions/71603404/rangeerror-locale-must-contain-localize-property-when-using-angular-material-da | |
| import { es } from 'date-fns/locale'; | |
| let matLocale = es; | |
| let dateInput = "DD/MM/YYYY"; | |
| export const MY_DATE_FORMATS: MatDateFormats = { | |
| parse: { | |
| dateInput: dateInput, | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | https://tyapk.ru/blog/post/rxjs-angular-parallelnye-i-posledovatelnye-zaprosy | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | https://www.youtube.com/watch?v=J-SAXiEh6FM | |
| https://angdev.ru/doc/dynamic-components/ | |
| https://angular.io/guide/dynamic-component-loader | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | https://stackoverflow.com/questions/37362488/how-can-i-listen-for-keypress-event-on-the-whole-page/37363257 | |
| 1-------------------------------------------------------------------- | |
| https://angular.io/api/core/HostListener | |
| I would use @HostListener decorator within your component: | |
| import { HostListener } from '@angular/core'; | |
| @Component({ | |
| ... | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // imports | |
| import { ObjectUtils } from 'primeng/utils'; | |
| import * as FileSaver from 'file-saver'; | |
| // method | |
| saveAsCSVExcelFile(): void { | |
| const columns: any = this.viewData.colDefs; | |
| const data: any = this.viewData.rowData; | |
| let csv: string = ''; |