to be succint, my code is like

  <div data-ng-repeat="list in data1" style="padding:3px;">
        <div>  {{list.name} 
            <select  class="filter-multiselect"  ng-model="list[name]" 
ng-options="c.id   as c.name for c in data2">
                <option value="">Select Option</option>
            </select>
          </div>
</div>

but when i change the closing tag of div or say select element under second 
div it do not work. Like

  <div data-ng-repeat="list in data1" style="padding:3px;">
        <div>  {{list.name} </div>
            <select  class="filter-multiselect"  ng-model="list[name]" 
ng-options="c.id   as c.name for c in data2">
                <option value="">Select Option</option>
            </select>
</div>


On Tuesday, May 6, 2014 2:11:37 PM UTC+5:30, learning ng wrote:
>
> I am trying to get values in multiselect from two json in AngularJS.
> One JSON has headers and the second have corresponding data.
> In one ng repeat i want the select element with header name and options 
> from second json.
> It can create the select element and do not get the option list. 
> I think this is due to the scope of variables i.e the second json scope is 
> not available here.
> the format of json is
>
> colName={["name":"nokia","number",6768],["name":"motorola","number",878],["name":"samsung","number",768]};
> dataList=
>
> {"1":{"name":"nokia","multiselectValues":{"MULTISELECT":[{"key":"1001","value":"test2","selected":false},{"key":"1002","value":"Test","selected":false}]}},
>
> "2":{"name":"samsung","multiselectValues":{"MULTISELECT":[{"key":"1001","value":"test2","selected":false},{"key":"1002","value":"Test","selected":false}]}}}
>
> Please suggest how to solve this problem.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to