12 lines
263 B
JavaScript
12 lines
263 B
JavaScript
import Component from '@ember/component';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
classNames: ['json-viewer'],
|
|
|
|
json: null,
|
|
jsonStr: computed('json', function() {
|
|
return JSON.stringify(this.json, null, 2);
|
|
}),
|
|
});
|