Solution 1 :

As list is an input attribute not a property, you can assign dynamic value to list using:

[attr.list] ='object.property'.

for more info see the issue

Problem :

I want to render multiple dropdowns in angular based on the result from api.
From the api 2 dropdown controls are returned with different data however my code shows same data for both of the controls

Can anyone suggest how to assign a dynamic value to the property “list” in the input element?. I think if that is possible my problem would be solved or please let me know if there is any other solution

Comments

Comment posted by Arshi

i mean the list property in the input tag. Can we assign a value to it at run time like id

By

Leave a Reply

Your email address will not be published. Required fields are marked *