npm.io
1.0.0 • Published 7 years ago

ionic-json-schema-form

Licence
MIT
Version
1.0.0
Deps
0
Size
105 kB
Vulns
0
Weekly
0
Stars
2

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

Keywords