Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

62
Views
angular ja ui-select did not show the model values

I am using angular js ui select plugin for my drop down. this is the code

HTML

 <div class="col-sm-8 categoryWrapper">
                            <select ui-select2="{minimumResultsForSearch:10}" ng-model="screenList.approvalGrp"
                                multiple data-placeholder="*Category" class="form-control" id="category" required
                                ng-init="loadApprovalGroups()" ng-options="group.groupName for group in groupList">
                                <option value=""></option>
                            </select>
                            {{screenList.approvalGrp}}
                        </div>

this is the browser view. i prited it. please check this screen shot

ui select to view I need to load model values as the selected values.

this is the view that i exactly want enter image description here

how i do this correctly ?

7 months ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to reassign your values to the model.

$scope.screenList.approvalGrp = screenList.approvalGrp //[{item1}, {item2}]

7 months ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.