On Tuesday, February 25, 2014 8:36:43 PM UTC+1, Marc B wrote:
>
> Hello,
>
> I want to display the current time. So I use the date filter on a Date 
> instance:
>
> {{new Date() | date:'yyyy-MM-dd HH:mm:ss Z'}}
>
 
Hi,

'new Date()' is not a valid Angular expression. Angular expressions may 
look JavaScript, but it's not. See 
http://docs.angularjs.org/guide/expression 

-- 
thanks, Lars

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