Thanks for your comments! It's a good idea, I will revisit the code soon
to make some changes...
Best regards,
Luis-Ram�n
El 09/08/12 22:23, Marco Rinck escribi�:
> looking further into your code I would suggest you get rid of jquery
> dependency and instead use angularjs (somehow) to update the DOM for you.
>
> If I have learned something in my first angular project: its not good
> style to update DOM manually (even with jquery).
>
> Marco
>
> Am Mittwoch, 8. August 2012 22:03:22 UTC+2 schrieb Luis Ramon Lopez:
>
> Hi,
>
> I've implemented a 'time-ago' directive on a personal project which is
> based on the timeago jQuery plugin
> (
https://github.com/rmm5t/jquery-timeago
> <
https://github.com/rmm5t/jquery-timeago>).
>
> You can have a look into the directive here:
>
http://jsfiddle.net/lrlopez/dFeuf/ <
http://jsfiddle.net/lrlopez/dFeuf/>
>
> I hope that someone will find this interesting.
>
> Anyway, I'd like that some experienced Angularjs fellow could have a
> look into it and tell me if there is a better way to implement the
> behaviour.
>
> I'll also be using the directive as an Angularjs example. I think it's
> worth teaching some Angularjs basics to my students next year. I'll try
> hard to contribute so I can earn a t-shirt to tease them during the
> classes :)
>
> Thanks in advance!
>
> Best regards,
> Luis-Ram�n L�pez
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "AngularJS" group.
> To post to this group, send email to
ang...@googlegroups.com.
> To unsubscribe from this group, send email to
>
angular+u...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/angular?hl=en.
>
>