🌐
GitHub
github.com › hamzahamidi › ajsf
GitHub - hamzahamidi/ajsf: Angular JSON Schema Form · GitHub
This example playground features over 70 different JSON Schemas for you to try (including all examples used by each of the three libraries listed above), and the ability to quickly view any example formatted with Material Design, Bootstrap 3, Bootstrap 4, or without any formatting. If you want to try out the libraries, you can for example install @ajsf/material package from NPM which uses material-angular UI.
Starred by 362 users
Forked by 181 users
Languages   TypeScript 97.3% | HTML 1.4% | JavaScript 1.1% | SCSS 0.2%
🌐
Schemaform
schemaform.io
Angular Schema Form
Schema Form is a set of AngularJS directives (and a couple of services) to generate Bootstrap 3 ready forms from a JSON Schema.
🌐
Bjdash
bjdash.github.io › JSON-Schema-Builder
JSON Schema Builder
angular.module('app', ['json-schema']) .controller('MyController', MyController); MyController.$inject = ['$scope', 'JsonSchema']; function schemaCtrler($scope, JsonSchema) { ......
🌐
GitHub
github.com › mariohmol › ng-jsonschema
GitHub - mariohmol/ng-jsonschema: JSON Schema Builder for Angular: A simple GUI tool to enable designing and building JSON schemas
JSON Schema Builder for Angular: A simple GUI tool to enable designing and building JSON schemas - mariohmol/ng-jsonschema
Author   mariohmol
🌐
npm
npmjs.com › package › angular-schema-based-json-editor
angular-schema-based-json-editor - npm
A angular component of schema based json editor.. Latest version: 7.25.1, last published: 6 years ago. Start using angular-schema-based-json-editor in your project by running `npm i angular-schema-based-json-editor`. There are no other projects in the npm registry using angular-schema-base...
      » npm install angular-schema-based-json-editor
    
Published   Oct 23, 2019
Version   7.25.1
Author   York Yao
🌐
Jsonforms
jsonforms.io
More forms. Less code. - JSON Forms
Besides various small fixes and improvements, the release adds support for Angular 21. You can find the full changelog in the Github release notes. Any questions? Check out our community forum.more news · JSON Forms has a modular architecture and can be customized on every level.
🌐
Rodikh
rodikh.github.io › angular-json-editor
Angular-json-editor
<json-editor schema="mySchema" startval="myStartVal" on-change="onChange($editorValue)"></json-editor> The module doesn't include the original json-editor code, but it is included in it's bower dependencies. ... <script src="bower_components/json-editor/dist/jsoneditor.js"></script> <script src="bower_components/angular-json-editor/angular-json-editor.js"></script>
🌐
npm
npmjs.com › package › angular4-json-schema-form
angular4-json-schema-form - npm
Start using angular4-json-schema-form in your project by running `npm i angular4-json-schema-form`. There are no other projects in the npm registry using angular4-json-schema-form.
      » npm install angular4-json-schema-form
    
Published   Dec 22, 2017
Version   0.6.0
Author   David Schnell-Davis
🌐
npm
npmjs.com › package › angular6-json-schema-form
angular6-json-schema-form - npm
Start using angular6-json-schema-form in your project by running `npm i angular6-json-schema-form`. There are no other projects in the npm registry using angular6-json-schema-form.
      » npm install angular6-json-schema-form
    
Published   Sep 13, 2019
Version   8.0.0
Author   https://github.com/hamzahamidi/Angular6-json-schema-form/graphs/contributors
Find elsewhere
🌐
YouTube
youtube.com › watch
Supercharge your Angular Project with JSON Schema Forms - YouTube
JSON Schema allows to describe the structure of JSON documents. This video shows how you can leverage this standard for defining your Angular forms is a comp...
Published   August 3, 2020
Top answer
1 of 1
3

After spending some more time, I've managed to set up the object editor to map the child properties.

In the editor extension code, I traverse the schema properties to add them to the form object, and then I can map them in the angular html template.

Here's the js code with the additions:

var location = function(name, schema, options) {
  if (schema.type === 'object' && schema.format === 'location') {
    var f = schemaFormProvider.stdFormObj(name, schema, options);
    f.key  = options.path;
    f.type = 'location';
    options.lookup[sfPathProvider.stringify(options.path)] = f;

    // ADDED THIS BIT:
    // map the schema properties to form properties
    f.properties = {};
    angular.forEach(schema.properties, function(v, k) {
      var path = options.path.slice();
      path.push(k);
      if (options.ignore[sfPathProvider.stringify(path)] !== true) {
        var required = schema.required && schema.required.indexOf(k) !== -1;

        var def = schemaFormProvider.defaultFormDefinition(k, v, {
          path: path,
          required: required || false,
          lookup: options.lookup,
          ignore: options.ignore
        });
        if (def) {
          f.properties[k] = def;
        }
      }
    });

    return f;
  }
};
schemaFormProvider.defaults.object.unshift(location);

and the HTML template (with the inputs type='number' rather than 'text') now looks like this:

<div class="form-group" ng-class="{'has-error': hasError()}">

  <label class="control-label" ng-show="showTitle()">{{form.title}}</label>

      <input ng-show="form.properties.latitude.key"
             style="background-color: white"
             type="number"
             class="form-control"
             schema-validate="form.properties.latitude"
             ng-model="$$value$$.latitude" />

      <input ng-show="form.properties.longitude.key"
             style="background-color: white"
             type="number"
             class="form-control"
             schema-validate="form.properties.longitude"
             ng-model="$$value$$.longitude" />

  <span class="help-block">{{ (hasError() && errorMessage(schemaError())) || form.description}}</span>

</div>

I don't know if this is the correct way to do it but it works for my purposes.

🌐
Stack Overflow
stackoverflow.com › questions › 57955542 › dynamically-create-forms-from-json-schema-angular-8
Dynamically create forms from JSON Schema [Angular 8]
I found working fork which is continuously support and I have integrate it with success into my project. If someone would be looking for working example, here it is this fork on github: github.com/hamzahamidi/Angular6-json-schema-form and on npm: npmjs.com/package/angular6-json-schema-form.
🌐
GitHub
github.com › json-schema-form › angular-schema-form
GitHub - json-schema-form/angular-schema-form: Generate forms from a JSON schema, with AngularJS!
Generate forms from a JSON schema, with AngularJS! - GitHub - json-schema-form/angular-schema-form: Generate forms from a JSON schema, with AngularJS!
Starred by 2.5K users
Forked by 641 users
Languages   JavaScript 95.6% | HTML 4.4% | JavaScript 95.6% | HTML 4.4%
🌐
Reddit
reddit.com › r/angular2 › json schema form ui builder library
r/Angular2 on Reddit: Json schema form UI builder library
August 30, 2022 -

Hi guys!

Do you know of a UI form builder library for Angular 2+ that can allow us to build json schema?

React Js has: https://ginkgobioworks.github.io/react-json-schema-form-builder/

Angular JS has: https://bjdash.github.io/JSON-Schema-Builder/

I cant seem to find anything for Angular 2+.

I am thinking about trying to put React Js inside Angular 2+ just to use the React Js Json schema UI builder library. For those of you who tried that, can you please tell me your experience?

🌐
npm
npmjs.com › package › ang-jsoneditor
ang-jsoneditor - npm
Angular Json Editor (wrapper for jsoneditor).
      » npm install ang-jsoneditor
    
Published   Apr 09, 2025
Version   4.0.2
Author   Mario Mol
🌐
Alibaba Cloud
developer.aliyun.com › mirror › npm › package › angular4-json-schema-form-updated
Package - angular4-json-schema-form-updated
This example playground features over 70 different JSON Schemas for you to try (including all examples used by each of the three libraries listed above), and the ability to quickly view any example formatted with Material Design, Bootstrap 3, Bootstrap 4, or without any formatting. To install the library and the example playground from GitHub, clone https://github.com/naveenatti/angular4-json-schema-form.git with your favorite git program.
🌐
GitHub
github.com › shamoons › ng-json-schema-form
GitHub - shamoons/ng-json-schema-form: Angular 2 JSON Schema Form builder
Angular 2 JSON Schema Form builder. Contribute to shamoons/ng-json-schema-form development by creating an account on GitHub.
Author   shamoons
🌐
GitHub
github.com › angular › angular-cli › blob › main › packages › schematics › angular › application › schema.json
angular-cli/packages/schematics/angular/application/schema.json at main · angular/angular-cli
"$schema": "http://json-schema.org/draft-07/schema", "$id": "SchematicsAngularApp", "title": "Angular Application Options Schema", "type": "object", "description": "Generates a new Angular application within your workspace.
Author   angular