If the model is not predefined, is there a way to save empty ng-tags-input as array?
Here's the demo showing that ng-tags-input leaves model as undefined.
I also tried to reset the value in onbeforesave, but it didn't work.
In my case, the model is build dynamically based an other models, so it is not possible to initialize the model as empty array. So I'm trying to find a easy way to give it a default value.
Currently I check and reset the model in save method of the form.
If the model is not predefined, is there a way to save empty ng-tags-input as array?
Here's the demo showing that ng-tags-input leaves model as undefined.
I also tried to reset the value in
onbeforesave, but it didn't work.In my case, the model is build dynamically based an other models, so it is not possible to initialize the model as empty array. So I'm trying to find a easy way to give it a default value.
Currently I check and reset the model in
savemethod of the form.