Last updated: 7-20-2014
Author: Alex Middeleer

Angular.js: binding new ng-repeat elements to the model dynamically

This is a cop-out, but I'm going to link to a stack overflow question-and-answer that I created for this post. It started out as a stack overflow question anyway.

I needed to create a form which grew dynamically with input elements inside an ng-repeat. Despite this complexity, I figured there had to be a simple way to bind these elements without to the model; after all, I was essentially just building array of inputs without could map directly to an array in the model. See the details and the answer here , or just check out the sample code on plunker here and here.

comments powered by Disqus