I am using AngularJS as part of the MEAN stack. I have a model represented by job. job.tag is an attribute of the model represented by an array. The code below is the input field on a page used to edit the job attributes (the job has already been created with an array of various strings represented by job.tag).
<input data-ng-model="job.tag" type="text" id="tag" maxlength="50">
When the page used to edit the attributes is loaded - the input field is populated by a string representing the array which looks like "x,y,z" - when the array is converted into a string (the value which populates the text input field), commas are used to separate each element in the array. When the field is populated, how do I replace the commas with a whitespace, so the field displays "x y z"?
ng-model="job.tab | take-out-comma-filter.