Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

share|improve this answer
    
Thanks a lot. It saved me a lot of pain. –  Arnab Das Aug 27 '13 at 10:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.