Thx
On Jan 18, 2014 12:31 PM, "Sam Pepose" <[email protected]> wrote:

> You will have to do the latter.
>
> On Friday, January 17, 2014 10:32:07 AM UTC-6, Nikita Tovstoles wrote:
>>
>> I have a directive with refreshInterval attribute. I would like to make
>> that attribute optional ('@?') but fallback to a default value if one is
>> not provided. Is there a scope syntax for the latter ie something like:
>> scope: { refreshInterval : '@?:10' }
>>
>> ...or do I just use:
>> scope: { refreshInterval : '@?' }
>>
>> ...and then check whether $scope.refreshInterval is defined in link() or
>> controller() and - if not - assign to '10' there?
>>
>> thanks,
>> -nikita
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "AngularJS" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/angular/i4VvzEs2YLs/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

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

Reply via email to