I don't remember seeing that with scopes, though something similar exists when 
requiring directive controllers.

Raul

> On Mar 8, 2014, at 9:06 AM, Mark Volkmann <[email protected]> wrote:
> 
> 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.

-- 
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.

Reply via email to