Hi there, yes, this was indeed a solution that I thought about as well. This would require some custom logic on my end though (not much, I'm not complaining), so I thought I'd ask here to see whether there's a more generic way of detecting these changes. But, I gather there isn't, so I'll roll my own then :)
cheers, Roland On 6 February 2014 10:47, Mauro Servienti <[email protected]> wrote: > Since they are bound to some properties in your scope why do you need to > detect that? > Isn't it enough a watch? > Can't you broadcast yourself the change? > > .m > On 06/feb/2014, at 10:19, Roland Zwaga <[email protected]> wrote: > > Hi there, > > is there a way to detect when ngShow or ngHide gets triggered? > In my case I have a view that contains an audioplayer, I'd like to stop > the audio > playing when the view gets hidden. As far as I can see no events are > broadcasted > by those directives, so is there another way of detecting these changes? > > Thanks in advance for any advice, > > cheers, > > Roland Zwaga > > -- > 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. > > > -- > 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/vpMds4nLba0/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. > -- regards, Roland -- Roland Zwaga Senior Consultant | Stack & Heap BVBA +32 (0)486 16 12 62 | [email protected] | http://www.stackandheap.com http://randoriframework.com http://zwaga.blogspot.com http://www.springactionscript.org http://www.as3commons.org -- 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.
