Adding support for nested types, array and dates!
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user