1

I've set one Plnkr. I want to dynamically add input fields in a directive. The input fields are to be built by a collection from a controller. And change the values of the inputs. But the main problem is that I can't edit the values in input fields generated by the directive.

Please help. Thanks in advance.

1 Answer 1

2

Shortly: bind to objects instead text values.

Longer: see your forked Plnkr http://plnkr.co/edit/wzfwQI

See comments which starts from "Changes:" in script.js and dynamicTextFields-template.html

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

1 Comment

Thanks a lot. It saved me a lot of pain.

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.