Y
Y
yarikus2015-06-02 12:23:53
Angular
yarikus, 2015-06-02 12:23:53

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

1 answer(s)
A
Alexander Tartmin, 2015-06-02
@baskerville42

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 question

Ask a Question

731 491 924 answers to any question