I\'m giving a first try at AngularJS custom directives.
I\'m having trouble using (or understanding ...) the isolated scope in the link function of the directive.
You can visit the JSFiddle created by me here: http://jsfiddle.net/7t984sf9/5/:
link: function($scope, $elem, $attr) {
console.log($scope.onewayObject);
$attr.$observe('onewayObject', function(value) {
console.log(value);
});
}
Or some more detailed explanation here: What is the difference between & vs @ and = in angularJS