Update folder structure

This commit is contained in:
Çetin
2021-12-28 13:29:25 +03:00
parent e0762fdeb0
commit ab8f627bb3
71 changed files with 189 additions and 193 deletions

View File

@@ -0,0 +1,27 @@
import {Component, OnInit} from '@angular/core';
import {MenuItem} from 'primeng/api';
@Component({
templateUrl: './button.component.html'
})
export class ButtonComponent implements OnInit {
items: MenuItem[];
loading = [false, false, false, false]
ngOnInit() {
this.items = [
{label: 'Update', icon: 'pi pi-refresh'},
{label: 'Delete', icon: 'pi pi-times'},
{label: 'Angular.io', icon: 'pi pi-info', url: 'http://angular.io'},
{separator: true},
{label: 'Setup', icon: 'pi pi-cog'}
];
}
load(index) {
this.loading[index] = true;
setTimeout(() => this.loading[index] = false, 1000);
}
}