Skip to content

Commit

Permalink
feat: copy pretty-printed JSON
Browse files Browse the repository at this point in the history
closes #219
  • Loading branch information
RomanHotsiy committed Mar 9, 2017
1 parent 9ccfd52 commit e99d66d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shared/components/CopyButton/copy-button.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e99d66d

Please sign in to comment.