Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Adding option in angularjs ui-multiselect dynamically from http request

    • 0
    • 0
    • 0
    • 2
    • 0
    • 0
    • 0
    • 922
    Answer it

    My code is:

    <ui-select multiple ng-model="multipleDemo.selectedPeople" theme="select2" ng-disabled="disabled" style="width: 800px;">
        <ui-select-match placeholder="Select person...">{{$item.name}} &lt;{{$item.email}}&gt;</ui-select-match>
        <ui-select-choices repeat="person in people | propsFilter: {name: $select.search, age: $select.search}">
          <div ng-bind-html="person.name | highlight: $select.search"></div>
          <small>
            age: <span ng-bind-html="''+person.age | highlight: $select.search"></span>
          </small>
        </ui-select-choices>
      </ui-select>
    
    json:
    
    {
    
    name:{Ranjith,
    
    Xyz,
    
    Pqr
    
    }
    
    email{}
    
    }

    i want to add only names coming from http request

     

 2 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: