{"id":15061238,"url":"https://github.com/rodikh/angular-json-editor","last_synced_at":"2025-06-11T04:42:07.098Z","repository":{"id":17606458,"uuid":"20410308","full_name":"rodikh/angular-json-editor","owner":"rodikh","description":"An angular wrapper for jdorn/json-editor","archived":false,"fork":false,"pushed_at":"2018-11-19T12:30:10.000Z","size":652,"stargazers_count":99,"open_issues_count":4,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-09T04:36:54.342Z","etag":null,"topics":["angular","json-editor","json-schema"],"latest_commit_sha":null,"homepage":"http://rodikh.github.io/angular-json-editor","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodikh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-02T16:08:07.000Z","updated_at":"2025-03-07T13:01:22.000Z","dependencies_parsed_at":"2022-09-09T11:20:54.883Z","dependency_job_id":null,"html_url":"https://github.com/rodikh/angular-json-editor","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodikh%2Fangular-json-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodikh%2Fangular-json-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodikh%2Fangular-json-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodikh%2Fangular-json-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodikh","download_url":"https://codeload.github.com/rodikh/angular-json-editor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253759247,"owners_count":21959724,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","json-editor","json-schema"],"created_at":"2024-09-24T23:12:22.637Z","updated_at":"2025-05-12T14:53:27.590Z","avatar_url":"https://github.com/rodikh.png","language":"JavaScript","readme":"JSON Editor Angular directive\n=============================\n\nA directive that wraps [jdorn's json-editor](https://github.com/jdorn/json-editor).\n\nJSON Editor takes a JSON Schema and uses it to generate an HTML form.\n\nFor further information about supported schema properties and usage, check out the original [json-editor](https://github.com/jdorn/json-editor).\n\nRequirements\n----------------\n\nThe module doesn't include the original json-editor code, but it is included in it's bower dependencies.\n\nInstallation\n------------\n\nInstall via bower\n\n    bower install angular-json-editor --save\n    \nThen include the directive and json-editor in your html (you can also use the minified versions)\n    \n```html\n\u003cscript src=\"bower_components/json-editor/dist/jsoneditor.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/angular-json-editor/dist/angular-json-editor.js\"\u003e\u003c/script\u003e\n```\n\nUsage\n-----\n\nThe directive supports both synchronous and asynchronous values, all values can be either a scope object, or a promise returned from $q, $http, $timeout, $resource etc.\nPlease check out `demo/index.html` and `demo/app.js` for an example usage of both scenarios.\n\n### Validation\nThe directive exposes an `isValid` property on the scope, which can be used to enable/disable show/hide buttons using `ng-disabled/ng-enabled` or `ng-hide/ng-show`.\n```html\n\u003cbutton type=\"button\" ng-disabled=\"!isValid\"\u003eButton 1\u003c/button\u003e\n```\n\n### Events\nThe directive allows you to pass a callback function through the `on-change` attribute that will be called whenever a change event is fired on the editor.\n```html\n    \u003cjson-editor schema=\"mySchema\" startval=\"myStartVal\" buttons-controller=\"SyncButtonsController\" on-change=\"onChange()\"\u003e\n```\n\n### Configuration and Plugins\nConfiguring the JSONEditor object for plugins and styling is possible by injecting the JSONEditorProvider to your config function and calling the configure method.\nThe object you pass to configure will be merged with the JSONEditor object.\n\n```javascript\n    angular.module('demoApp', ['angular-json-editor']).config(function (JSONEditorProvider) {\n        JSONEditorProvider.configure({\n            plugins: {\n                sceditor: {\n                    style: 'sce/development/jquery.sceditor.default.css'\n                }\n            },\n            defaults: {\n                options: {\n                    iconlib: 'bootstrap3',\n                    theme: 'bootstrap3',\n                    ajax: true\n                }\n            }\n        }); \n    });\n\n```\n\nBuilding\n---------\n\nClone the project, install bower and npm dependencies by running\n\n    bower install \u0026\u0026 npm install\n\nIf you dont have grunt-cli installed globally run `npm install -g grunt-cli`\n\nThen run `grunt` and look in the `dist` folder.\n\n\nThe MIT License (MIT)\n------\n\nCopyright (c) 2015 Rodik Hanukaev\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodikh%2Fangular-json-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodikh%2Fangular-json-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodikh%2Fangular-json-editor/lists"}