I think simply attrs.hasOwnProperty('arr') will suffice.
On Monday, February 3, 2014 5:52:52 AM UTC+2, Sander Elias wrote:
>
> Hi Mark,
>
> out the top of my hat (UNTESTED!):
> if (!angular.isdefined(attrs.arr)) { throw new Error('missing required ARR
> attribute')}
>
> Regards
> Sander
>
--
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/groups/opt_out.