Hi Peter,
Thanks for your response!
The Fiddle is more a proof of concept (discussed during a angular meetup), and not used within a project I am currently working on. From a UX p.o.v. the solution you mentioned would be perfect!
The strange issue I ran into is something I can't wrap my head around. Every row/directive has it's own scope (scope true in directive) with it's own variables (cloneState, cloned, etc). The last empty/row/directive can't be removed, so scope.cloned is false for the last row. This works as long as you don't remove some previous row. After removing a previous row the empty row's scope.cloned is set to true and the remove button will work. Looks like Angular does something that isn't clear to me...
I have a another look at it this weekend, maybe I am missing something or I forget to check something...
greetings,
Adriaan
Op vrijdag 30 november 2012 15:10:42 UTC+1 schreef Peter Bacon Darwin het volgende: