11h
comment AngularJS: how do I code an element directive with optional attribute parameters?
scope.linked = typeof attrs.linked != 'undefined'; works better for a flag property
14h
comment AngularJS: how do I code an element directive with optional attribute parameters?
Nope :) That's what I've been through. You want a single negation of attrs.linked only. The mere presence of the attribute/property means its value is undefined which, when double-negated, leads to false. But thanks anyway!
17h
accepted AngularJS: how do I code an element directive with optional attribute parameters?
17h
comment AngularJS: how do I code an element directive with optional attribute parameters?
Yep, now it works. I will however peruse to find a way convert the attribute into a flag.
18h
comment AngularJS: how do I code an element directive with optional attribute parameters?
Thanks @Alp. The property linked doesn't seem to get ever evaluated to true. I tried with '@' as well to no avail. Anyway, I now see how the conditional is approached, I might have been ineffective in mine because I didn't consider introducing interim <span> to hold the logic.
1d
asked AngularJS: how do I code an element directive with optional attribute parameters?
Jul
21
awarded Popular Question
Jul
20
awarded Notable Question
Jul
2
awarded Inquisitive
Jul
2
awarded Curious
Jul
2
awarded Curious
Jun
20
awarded Yearling
Jun
20
awarded Yearling
Jun
17
awarded Disciplined
Jun
16
awarded Constituent
Jun
16
awarded Caucus
Jun
16
awarded Yearling
Jun
15
asked Bitbucket - "clone" activity log
Jun
15
reviewed Approve suggested edit on How do I install the Field Redirection module?
Jun
3
comment Is it possible to trigger ExtendScript (with params) from a local web page?
I'm on Illustrator on Windows. I tried to write a vb helper script to take care of the arguments but it did not work. Also, while browsing the model viewer I didn't seem to find any methods that would allow Ai to run a script from file.
1 2 3 4 5