A
A
Alexey2014-10-31 09:59:54
JavaScript
Alexey, 2014-10-31 09:59:54

How to pass an attribute value to an angular function?

let's say I have a link
a data-pressed="false" ng-click="func(...)"
how to pass the data-pressed value to func?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-10-31
Protko @Fesor

<button ng-click="func(false)"></button>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question