2017-12-15 21:39:18 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
2017-09-19 14:47:10 +00:00
|
|
|
|
|
|
|
export default Component.extend({
|
|
|
|
classNames: ['json-viewer'],
|
|
|
|
|
|
|
|
json: null,
|
2018-07-31 00:44:07 +00:00
|
|
|
jsonStr: computed('json', function() {
|
|
|
|
return JSON.stringify(this.get('json'), null, 2);
|
2017-09-19 14:47:10 +00:00
|
|
|
}),
|
|
|
|
});
|