I am getting the example with the callback very well. But i still strugle to understand on how can I make use of $watch to trigger the console.log inside the controller
Sent from my iPhone > On 03/apr/2014, at 11:06, Sander Elias <[email protected]> wrote: > > Hi Lucian, > > 1 is possible, but my preference would go to 2. > Did you look at the plunk I made up for you? It clearly shows how the get the > rating value in the controller! > There are several ways to solve your problem, the easiest is just watching > the scope variable where the rating is. > another possibility is, define a callback in your directive. I just changed > the plunk to support this too. > > Regards > Sander > > -- > 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/d/optout. -- 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/d/optout.
