Adding support for nested types, array and dates!

This commit is contained in:
2023-01-19 18:39:51 +01:00
parent aa4399ea20
commit 70d5a6e752
9 changed files with 246 additions and 23 deletions

View File

@@ -1,11 +1,11 @@
<div>
<form [formGroup]="form" (ngSubmit)="onSubmit(model)">
<form cForm [formGroup]="form" (ngSubmit)="onSubmit(model)">
<span class="col col-form-label" *ngIf="loading$ | async">Loading...</span>
<formly-form [form]="form" [fields]="fields" [model]="model"></formly-form>
<button color="primary" type="submit" class="btn btn-default">
<button cButton color="primary">
{{ this.isCreateForm() ? "Create" : "Update" }}
</button>
<button *ngIf="!this.isCreateForm()" (click)="onDelete()" color="danger" type="" class="btn btn-default">
<button cButton *ngIf="!this.isCreateForm()" (click)="onDelete()" color="danger">
Delete
</button>
</form>