question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tag input does not work without using ngModel

See original GitHub issue

I’m submitting a … (check one with “x”)

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

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

Current behavior When shooting ngModel does not work, it issues the following error on the console.

captura de tela de 2017-08-11 16-04-59

This is the html code in question captura de tela de 2017-08-11 16-11-24

This way it is sending the error, and it does not work.

Expected behavior I need the tag-input to work without ngModel only with formControlsName.

Minimal reproduction of the problem with instructions (if applicable) I can not reproduce the error.

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

Angular version:

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: v1.5.0

Browser: Chrome

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Gbuompriscocommented, Aug 11, 2017

Just replace the object to an array

schedules: [[], Validators.required],

0reactions
renanmoraescommented, Aug 11, 2017

Maybe that’s the error, how can I improve this, what I need is a string array. But how?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ngModel is not working while update in tag-Inputs
ngModel is not working while update in tag-Inputs · It works fine the array is updated. – Manos Kounelakis · Where, no i...
Read more >
Can't bind to 'ngModel' since it isn't a known property of 'tag ...
If 'tag-input' is an Angular component and it has 'ngModel' input, then verify that it is part of this module. If 'tag-input' is...
Read more >
Keeping Data in Sync with Two-way Binding Using Ngmodel
In the component class file, I've just set the value of the variable username , which is the same as the formControlName ....
Read more >
Angular ng-model Directive - W3Schools
The ng-model directive binds the value of HTML controls (input, select, textarea) to application data. The ng-model Directive. With the ng-model directive ...
Read more >
Difference between (change) and (ngModelChange) in Angular
In this post we're going to cover the difference between (change) and (ngModelChange) events with an <input> inside an Angular component.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found