• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

128
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 ?

almost 3 years 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}]

almost 3 years 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 vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error