20 lines
407 B
TypeScript
20 lines
407 B
TypeScript
import {Component} from '@angular/core';
|
|
|
|
|
|
@Component({
|
|
selector: 'app-copy-ip',
|
|
templateUrl: './copy-ip.component.html',
|
|
standalone: true,
|
|
imports: [],
|
|
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!';
|
|
}
|
|
|
|
}
|