0

i am very new to angularjs. now i have a data table and a filter. in the filter, i have 2 select:column and value. pick a column and filter with the value. my idea is as following:

<tr ng-repeat="f in filters">
        <td>
          <select ng-model="f.column"
                  ui-select2
                  placeholder="Column"
                  class="form-control input-sm"
                  ng-change="filterChange()">
            <option ng-repeat="c in params.columns" value="{{c}}">{{elementMap[c].label}}</option>
          </select>
        </td>
        <td>
        <select class="form-control input-sm"
                  ui-select2 
                  ng-model="f.value"
                  ng-change="filterChange()">
           <option ng-repeat="row in data.results" value="{{row.(f.column)}}">{{row.(f.column)}}</option>
        </select>
        </td>
</tr>

f.column is binded to the column name i pick up. i need something like {{row.(f.column)}} which angularjs doesn't recognize. is there any way to work around it?

thanks

0

1 Answer 1

0

This directive is now obsolete. A new initiative, more active, and 100% angular is available at https://github.com/angular-ui/ui-select.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.