1.0.0 • Published 5 years ago

ionic-json-schema-form v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

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 ©