You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
angular-json-editor is an angular module that provides a directive that wraps [jdorn's JSON Editor](https://github.com/jdorn/json-editor).
4
+
A directive that wraps [jdorn's json-editor](https://github.com/jdorn/json-editor).
5
5
6
6
JSON Editor takes a JSON Schema and uses it to generate an HTML form.
7
7
8
-
For further information about supported schema properties and usage, check out the original [JSON Editor repository](https://github.com/jdorn/json-editor).
8
+
For further information about supported schema properties and usage, check out the original [json-editor](https://github.com/jdorn/json-editor).
9
9
10
10
Requirements
11
11
----------------
@@ -15,59 +15,36 @@ The module doesn't include the original json-editor code, but it is included in
15
15
Installation
16
16
------------
17
17
18
-
Install angular-json-editor using bower, which will install the source json-editor as well.
18
+
Install via bower
19
19
20
-
If you are not using bower, please download the original [json-editor from here](https://github.com/jdorn/json-editor).
20
+
bower install angular-json-editor --save
21
+
22
+
Then include the directive and json-editor in your html (you can also use the minified versions)
The 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.
33
+
Please check out `demo/index.html` and `demo/app.js` for an example usage of both scenarios.
65
34
66
35
### Validation
67
-
The directive can attach an isValid property to the scope by using the is-valid attribute.
36
+
The 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`.
0 commit comments