1

I would like create reusable input group component with DE/EN data.

I'm looking for, once all the mandatory fields are filled for EN and DE then submit button should get enabled. And also should get all the data in JSON format.

Here the sample https://stackblitz.com/edit/angular-avjyct?file=app/app.component.ts

I have been trying but stuck. Expert advise please?

4
  • Please clarify which problem are you having... Commented Jun 11, 2019 at 10:01
  • To clarify, all four fields need to be filled? Commented Jun 11, 2019 at 10:01
  • @Avin: Yes, it should be filled all four. Commented Jun 11, 2019 at 10:06
  • @agascon: I'm unable to enable the submit button since mandate fields are not binding the data properly. Commented Jun 11, 2019 at 10:10

1 Answer 1

3

Looks like you wanted to pass string value to your child component but passed undefined instead:

[en]="label1_en"
      ^^^^^^^^^
there is no such property in your component.

You can pass string like:

[en]="'label1_en'"

or

en="label1_en"

Forked Stackblitz

Sign up to request clarification or add additional context in comments.

1 Comment

You're welcome! Please consider accepting the answer if it helped

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.