Answer the question
In order to leave comments, you need to log in
How to get selected data from ng-options?
Good afternoon!
For clarity of the question, I outlined a code example: codepen.io/anon/pen/VLpYJm?editors=101
I have two collections - items and fields. Both are connected and contain the necessary information. For items, I create a table and check the selected values, and fields is just a list of fields that contains the type property, depending on which the desired input type should be displayed.
Actually the question is: how to access field.type from ng-options in order to show the desired input?
Answer the question
In order to leave comments, you need to log in
Select in the ng-options directive add a filter based on which to display certain fields.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question