0
<td>
  <select ng-options="user.username as user.username for user in dptUsers" 
    ng-model="newResponsible" data-ticketID='{{ticket._id}}' 
    ng-click='editResponsible(newResponsible, <<<<>>>>)'>
                                 {{user.username}}
  </select> 
</td>

How can I pass my data-ticketID into my editResponsible(a, b) function?

1 Answer 1

1

You could pass that variable directly in ng-click

ng-click='editResponsible(newResponsible, ticket._id)'
Sign up to request clarification or add additional context in comments.

2 Comments

Ohhh, man! I love you! I was thinking that it would not work because of my ng-repeat. But it worked! Problem solved. Thanks again.
@RodrigoSouza Glad to help you..Thanks :)

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.