Not sure where I saw this, but I thought attributes for custom directive
could be made optional with a ?.
For example, I could have this in my directive definition object:
scope: {
foo: '@',
bar: '@?'
}
I would expect that all uses of this directive must have the foo attribute,
but the bar attribute is optional.
However, it seems that the ? has no effect and both attributes are
optional. What am I misunderstanding?
--
R. Mark Volkmann
Object Computing, Inc.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.