I wrote a directive with a selection area.
app.directive('myDirective', function() { return { restrict: 'E', scope { attr1: '@', attr2: '@', noValueAttr:
html could be
<my-directive attr1='...' attr='...' ... no-value-attr>
or
<my-directive attr1='...' attr='...' >
I am wondering how to use (and indicate the directive, if there is one or not) an optional attribute that does not have an assigned value. Thanks.
source share