diff --git a/lib/shared/components/CopyButton/copy-button.directive.ts b/lib/shared/components/CopyButton/copy-button.directive.ts index bf57bc1c7b..6cd7810c9d 100644 --- a/lib/shared/components/CopyButton/copy-button.directive.ts +++ b/lib/shared/components/CopyButton/copy-button.directive.ts @@ -27,7 +27,7 @@ export class CopyButton implements OnInit { onClick() { let copied; if (this.copyText) { - copied = Clipboard.copyCustom(JSON.stringify(this.copyText)); + copied = Clipboard.copyCustom(JSON.stringify(this.copyText, null, 2)); } else { copied = Clipboard.copyElement(this.copyElement); }