You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

angular-jsoneditor

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-jsoneditor

Angular wrapper for jsoneditor

0.0.2
latest
Source
npmnpm
Version published
Weekly downloads
856
16.94%
Maintainers
1
Weekly downloads
 
Created
Source

angular-jsoneditor

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

Keywords

angular

FAQs

Package last updated on 24 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts