R
R
rusher872016-10-20 14:34:48
JavaScript
rusher87, 2016-10-20 14:34:48

How to write data from angular to tag attribute?

I output data using ng-repeat:

<ul>
          <li ng-repeat="user in userList | filter: userSearchQueryString">
            <a href="javascript:void(0)" ng-bind="user.DisplayName"></a>
          </li>
        </ul>

I want to add id from user.id to the a tag
How to do it correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2016-10-20
@rusher87

As far as I remember, it is done like this:
But the question arises - why? If you need further manipulations - use directives.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question