1

I have data like this :

 $scope.data = [
    {
      }
]

How can i repeat it in select . I tried

 <select>
      <option  
      ng-repeat="d in data" value=" {{d.last_name.value}}{{d.first_name.value}}">
        {{d.last_name.value}}{{d.first_name.value}}
     </option>
    </select>

but not work . Here is plnkr : http://plnkr.co/edit/GHSbBh9ddCiSFZZeKAQv?p=preview Please help me

1 Answer 1

4

You need to inject $scope to your controller like this: function ctrl($scope) {
Working plunkr

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.