Extracted the "Copy IP" button to a new `CopyIpComponent` to improve reusability and modularity. Updated `HomeComponent` to use this new component and removed redundant methods for copying text to the clipboard. Added tests and styles for the new component.
4 lines
164 B
HTML
4 lines
164 B
HTML
<button type="button" style="margin-top: 50px;" class="button-outer" (click)="copyIpToClipboard()">
|
|
<span class="button-inner">{{ displayText }}</span>
|
|
</button>
|