Skip to content Skip to sidebar Skip to footer

Passing An Array In A Hidden Input

I'm attempting to pass an array of values in a hidden input using angular. Here is my code so far: Copy

Solution 2:

I think this is because angular stores the array as a string in the hidden field instead of the actual array. So just stringify it to json in angular and decode it in back end.


Post a Comment for "Passing An Array In A Hidden Input"