Ionic framework library for the Angular 2 JSON Schema Form
Ensure you have already installed and configured Ionic and Angular 2 JSON Schema Form.
To install this library, run:
$ npm install angular2-json-schema-form-ionic --saveand then from your Angular AppModule:
// Import the library
...
import{IonicFrameworkModule}from'angular2-json-schema-form-ionic';
@NgModule({imports: [
...
// Specify the library as an importIonicFrameworkModule,// Configure angular2-json-schema-form to load the IonicFrameworkModuleJsonSchemaFormModule.forRoot(IonicFrameworkModule),],
...
})exportclassAppModule{}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 --><ionic-content><json-schema-form[form]="schema" [model]="model"></json-schema-form></ionic-content>To generate the library for distribution
$ npm run buildTo lint all *.ts files:
$ npm run lintMIT ©