I\'m creating some directives with an isolated scope and some aliased properties. For example:
scope: { prop1: \'@\' }
My question is, w
I found that this works inside the directive definition:
scope: { prop1: '@' }, link: function(scope, element, attrs) { ... attrs.$observe('prop1', function(val) { scope.prop1 = val || 'default' }); ... }
to make
behave like