Ngx-chips: Iteration with formBuilder array

Created on 10 Aug 2017  路  1Comment  路  Source: Gbuomprisco/ngx-chips

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[x] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior

formBuilder structure
captura de tela de 2017-08-10 16-51-13

html structure
captura de tela de 2017-08-10 17-00-17

Error
captura de tela de 2017-08-10 17-18-00

This problem is happening when I am submitting a tag. I need it to add the tags along with my formBuild at times which is a string array.

Method transform values
captura de tela de 2017-08-10 17-20-09

The array is thus becoming an array of objects.
captura de tela de 2017-08-10 17-51-15

I need it to save me an array of string.

Objeto: { "name": "", "code": "", "rate": "", "status": true, "accessibility": true, "_city": "", "_categoryLine": "", "_operator": "", "daysOperations": { "week": { "status": true, "tripA": { "origin": "", "destiny": "", "schedules": [ "25:36" , "15:63", "23:46"], "routes": { "schedules": {}, "name": "" } } } } }

Expected behavior
I need to add a string array. But I'm using formBuilder

What do you use to build your app?. Please specify the version
Angular CLI

Angular version:
@angular/cli: 1.2.0 node: 6.11.1 os: linux x64 @angular/common: 4.3.0 @angular/compiler: 4.3.0 @angular/core: 4.3.0 @angular/forms: 4.3.0 @angular/http: 4.3.0 @angular/platform-browser: 4.3.0 @angular/platform-browser-dynamic: 4.3.0 @angular/router: 4.3.0 @angular/upgrade: 4.3.0 @angular/cli: 1.2.0 @angular/compiler-cli: 4.2.5

ngx-chips version:
version 1.5.0

Browser:
Chrome

Most helpful comment

Use modelAsString property

>All comments

Use modelAsString property

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jfknoepfli picture jfknoepfli  路  3Comments

lukas-bernert picture lukas-bernert  路  4Comments

anikets43 picture anikets43  路  4Comments

manilsson picture manilsson  路  4Comments

DevInstinct picture DevInstinct  路  4Comments