Aug
15
awarded Nice Question
Aug
11
awarded Yearling
Aug
9
reviewed Approve suggested edit on creating and theming register form in drupal 7
Jul
24
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
Jul
24
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!
Jul
24
accepted AngularJS: how do I code an element directive with optional attribute parameters?
Jul
24
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.
Jul
24
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.
Jul
23
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
1 2 3 4 5