I'm trying to figure out if it's possible to get the automatic functionality of attribute binding that you can get from an isolate scope:
scope : { someAttr: '@' }
while retaining the transparent scope-->parentScope property access of scope.$new():
$scope.foo = 'foo';
$scope.bar = 'bar';
var childScope = $scope.new();
childScope.foo = 'childFoo';
// childScope == { foo: 'childFoo', bar: 'bar' }
Ideas? I'm not sure how to create a new scope in the controller and then send attributes from a directive to that... ???
To be clear I ultimately want in a controller:
$scope === {
attr : << attribute from directive instance >>
, parentKey : << transparent to parent diretive's scope >>
}