Pages are now grouped per group they appear in on in the header (where possible) Utilities used by multiple pages in the project are grouped in folders such as services/pipes/etc
22 lines
472 B
TypeScript
22 lines
472 B
TypeScript
import {Component} from '@angular/core';
|
|
import {CommonModule} from '@angular/common';
|
|
|
|
@Component({
|
|
selector: 'app-copy-ip',
|
|
templateUrl: './copy-ip.component.html',
|
|
standalone: true,
|
|
imports: [
|
|
CommonModule
|
|
],
|
|
styleUrl: './copy-ip.component.scss'
|
|
})
|
|
export class CopyIpComponent {
|
|
public displayText: string = 'Copy IP'
|
|
|
|
public copyIpToClipboard(): void {
|
|
navigator.clipboard.writeText('play.alttd.com');
|
|
this.displayText = 'Copied!';
|
|
}
|
|
|
|
}
|