ionic-json-schema-form
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

ionic-json-schema-form

Ionic framework library for the Angular 2 JSON Schema Form this is the upgraded version with CSS support of angular2-json-schema-form-ionic

Installation

Ensure you have already installed and configured Ionic2+ and Angular 2 JSON Schema Form.

To install this library, run:

$ npm install ionic-json-schema-form --save

and then from your IONIC AppModule:

 
// Import the library
...
import { IonicFrameworkModule } from 'ionic-json-schema-form';
 
@NgModule({
  imports: [
    ...
 
    // Specify the library as an import
    IonicFrameworkModule,
 
    // Configure angular2-json-schema-form to load the IonicFrameworkModule
    JsonSchemaFormModule.forRoot(IonicFrameworkModule),
  ],
  ...
})
export class AppModule { }

Once the library is imported, you can use angular2-json-schema-form as normal and components should be replaced with their Ionic counterparts:

<!-- You can now use the library component in a template -->
  <json-schema-form [form]="schema" [model]="model" (onSubmit)="onSubmit($event)" (onChanges)="onChange($event)" >
  </json-schema-form>

License

MIT ©

Package Sidebar

Install

npm i ionic-json-schema-form

Weekly Downloads

12

Version

1.0.0

License

MIT

Unpacked Size

107 kB

Total Files

19

Last publish

Collaborators

  • 5hivam