angularjs - Repeating custom directive to attach to array property for input -


i have created plunkr. need custom directive repeating . need when click check button inputs should populated inside slides array in presentation-controller , can work array.

the problem directive adding inputs. when click check button, inputs should populated inside presentation-controller's $scope.slides[] array.

repeating directive attaching controller array property

i think problem on view template slide-input.html, here write ng-bind="slides[0]" , in presentation-controller write $scope.slides= ["hello"] , when click plus icon, adding new directive ,slides[0] displayed 'hello'


Comments