Skip to content

Commit dacf2ba

Browse files
committed
readme
1 parent eed763b commit dacf2ba

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Angular component that allows the creation of dynamic forms. You can use this component in situations where you get the configuration for the form from an external API or if you just hate HTML 😀
66

7+
<img src="./form.png" alt="Angular dynamic form img">
8+
79
## List of features
810

911
> `UI Style` — for UI i used [PrimeNG](https://www.primefaces.org/primeng/#/) but you can use any Angular UI Library.

form.png

26.9 KB
Loading

src/app/app.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@ import { InputComponent } from './form-factory/components/form-fields/input/inpu
1111
@Component({
1212
selector: 'app-root',
1313
template: `<app-form-example></app-form-example>`,
14+
styles: [`
15+
::ng-deep body{
16+
padding: 2rem;
17+
}`]
1418
})
1519
export class AppComponent {}

src/app/form-example/form-example.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ import { fieldsFromApi } from './fields-from-api';
3434
[form]="formFactory.getFormGroup(exampleForm, 'dynamic')"
3535
[fields]="exampleFields"
3636
></app-form-factory>
37-
<pre>{{ formOutput | json }}</pre>`,
37+
<pre>{{ formOutput | json }}</pre>
38+
`,
3839
})
3940
export class FormExampleComponent implements OnInit {
4041
exampleForm!: FormGroup;

0 commit comments

Comments
 (0)