Now, i want it to work as close as possible to the angular way. Is it getting there? Also, for some reason, it only fires on the first click event. I believe I have mishandled something in the directive.
Any tips on how to improve this are very welcome.
Thanks.
Anna
Pawel Kozlowski
unread,
Oct 22, 2012, 3:07:41 PM10/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Hi Anna,
I guess that everyone has a slightly different opinion on what the
AngularJS way but for me:
1) I would avoid jQuery if I can. Don't get me wrong, jQuery is great
but many times we can get away with the built-in jquery light. I'm
simply trying to avoid dependencies if I can.
3) The above implementation has an issue since we are listening to the
mouseout on a button, why people would probably expect it to act on
the popup. The whole thing can be done without using directives:
http://jsfiddle.net/NRpdK/3/; I guess that you were doing this to
learn directives - in this case you might have a look at Andy's
implementation of the boostrap's modal:
https://github.com/angular-ui/bootstrap/blob/master/src/modal/modal.js which deals with show / hide problematic.