hardy12994 / ng4-auto-complete

Using Input Tag and on type the list refresh, with Features - show list length, taking String/Object list, list trigger on word count, takes string and gives string
1 stars 0 forks source link

ERROR Error: auto-directive ID Required! Please provide the unique directive id #4

Open umeshchandra07109 opened 5 years ago

umeshchandra07109 commented 5 years ago

Shows above message for dynamically created input texts with dynamic id attribute value

hardy12994 commented 5 years ago

This module search for ID, <input id="list" [ng4-auto-complete]="list">, use something which helps you to hide that input instead of removing and adding HTML

umeshchandra07109 commented 5 years ago

I have input text box in form array which will be created dynamically. How to set Id to all these Input text?

hardy12994 commented 5 years ago

Please share your some part of code for more clarification.

umeshchandra07109 commented 5 years ago

<div *ngFor="item in list"> <input type="text" id= {{count}} [word-trigger]="0" [ng4-auto-complete]="list" filterName="fullName" no-record-text="No Users Found!" [list-length]="10" />

Here count value will increment for every row