isonet / angular-jsoneditor

Angular wrapper for jsoneditor

Home Page:https://jsfiddle.net/kdhky4v9/2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Angular wrapper for jsoneditor

https://jsfiddle.net/kdhky4v9/2/

License:MIT License


Languages

Language:JavaScript 100.0%