Skip to content

Commit

Permalink
🏷️ Add type for mySchema
Browse files Browse the repository at this point in the history
Resolves issue #459
  • Loading branch information
codycodes authored Feb 3, 2023
1 parent 6059398 commit 4941272
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Let's start by creating a simple AppComponent taking a simple JSON schema as inp
// app.component.ts

import { Component } from "@angular/core";
import { ISchema } from 'ngx-schema-form';

@Component({
selector: "minimal-app",
Expand All @@ -67,7 +68,7 @@ import { Component } from "@angular/core";
})
export class AppComponent {
// The schema that will be used to generate a form
mySchema = {
mySchema: ISchema = {
properties: {
email: {
type: "string",
Expand Down

0 comments on commit 4941272

Please sign in to comment.