147
rated 0 times
[
150]
[
3]
/ answers: 1 / hits: 120791
/ 11 Years ago, tue, may 14, 2013, 12:00:00
I have an attribute directive restricted as follows:
restrict: A
I need to pass in two attributes; a number and a function/callback, accessing them within the directive using the attrs
object.
If the directive was an element directive, restricted with E
I could to this:
<example-directive example-number=99 example-function=exampleCallback()>
However, for reasons I won't go into I need the directive to be an attribute directive.
How do I pass multiple attributes into an attribute directive?
More From » parameters