Skip to content

Latest commit

 

History

History
142 lines (104 loc) · 5.57 KB

README.md

File metadata and controls

142 lines (104 loc) · 5.57 KB

Changes history you can find here

Main features

  • Code folding
  • Array index
  • Syntax highlighting
  • Display value type

Demo

You can see demo on this page

Installation

  • Via bower (preferred way)
bower install --save jv.json-viewer

Usage

Add module as dependency to your app:

angular.module('your-app', ['jv.json-viewer']);

Add json viewer directive to template:

<jv-json-viewer></jv-json-viewer>

Default JSON Viewer code colors you can find in demo/jsonViewer.less (at the top of file).

Module's components

jsonViewer directive

Directive will be replaced by its template. For customization different JSON Viewer styles, you can add classes to it or modify the less variables in jsonViewer.less.

Usage

<ng-json-viewer editor="true || false" data="json || string"></ng-json-viewer>