Is there a way of inheriting the parent scope while extending it with passed attributes?
I want to pass parameters to a reusable directive directly
The answer from Angad will work for static linking, but if the value of the attribute can change after linking, this will not be updated. If you need this, the sollution would be to pass the value as string instead of reference:
In the directive, add an $observe on the attribute to update the scope variable:
$attributes.$observe('label', function(newValue){$scope.label=newValue});
Now the scope variable will dynamically change if the attribute value change.