diff --git a/.gitignore b/.gitignore index 3c82159..b9cf951 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,8 @@ node_modules *.launch .settings/ *.sublime-workspace +.yarn +.pnp.cjs # IDE - VSCode .vscode/* diff --git a/src/app/components/contentSteps/spendMoney/spend-money.component.ts b/src/app/components/contentSteps/spendMoney/spend-money.component.ts index ccbffd7..d51aebf 100644 --- a/src/app/components/contentSteps/spendMoney/spend-money.component.ts +++ b/src/app/components/contentSteps/spendMoney/spend-money.component.ts @@ -41,7 +41,14 @@ export class SpendMoneyComponent { } as DataFormBuilder; constructor() { - this.simple = this._fb.buildFormFromJson(this.simpleData); + this.simple = this._fb.buildFormFromJson({ + label: 'name', + value: 412123, + validators: [{ type: TypeConstantEnum.REQUIRED }], + placeholder: 'Isvan Avramescu', + labelHint: 'Name for User', + updateOn: 'blur', + }); this.currency = this._fb.buildFormFromJson({ label: 'personalData', labelHint: 'Personal Data', @@ -79,6 +86,6 @@ export class SpendMoneyComponent { } public logFrom() { - console.log(this.currency); + console.log(this.simple.value); } }