Angular wrapper for jsoneditor
Switch branches/tags
Nothing to show
Clone or download
#7 Compare This branch is 10 commits ahead, 4 commits behind viasocket:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

angular-jsoneditor npmlicenceCodacy grade

Angular wrapper for jsoneditor

Requirements

  • Only AngularJS, the rest is bundled

Usage

NPM:

npm install --save angular-jsoneditor

Don't forget to include the files in your app:

<script src="/node_modules/angular-jsoneditor/dist/angular-jsoneditor.js"></script>

OR

import 'angular-jsoneditor';

Add the 'angular-jsoneditor' module as a dependency to your application module:

const app = angular.module('app', ['angular-jsoneditor']);

Finally, add the directive to your html:

<angular-jsoneditor ng-model="data" options="options" style="width: 100%; height: 400px;"></angular-jsoneditor>

Demo

Check the html file in the demo folder or try this fiddle

Options

Please refer to the jsoneditor API for the different options.

Licence

MIT: see LICENSE