I have this basic plnkr which just implements a basic \"Hello, X\" directive. In the link function I am logging scope.name but I get undefined? Why is
scope.name
undefined
For those in 2015 who are reading this post, please note that the way Angular handles "@" attributes has changed. Angular 1.2 onwards, interpolation occurs prior to the invocation of the linking function.
"@"
An excellent post on this topic is present here.