That makes totally sense. thanks for the quick reply, but what I am trying 
to understand
is when I have to save the rating (on user click).

Which is the way to proceed:

1. inject a service inside the directive and call the service.post directly 
?

2. pass the values to the controller, maybe do some other stuff on top and 
then
call the service injected in the controller?

I was thinking on the second option but I have problems passing down the 
value of 
the rating to the controller, when the user clicks (without using a 
$broadcast and maybe
calling just one function in the controller)


Thanks

On Wednesday, April 2, 2014 11:05:26 PM UTC+2, lucian enache wrote:
>
> Here is my plunker : http://plnkr.co/edit/GdB1kyLRXVN7CMPWavVl?p=preview
>
> I am struggling to call the save() function withou success, I have tried 
> both
> scope.save() and scope.$apply("save()");
>
> Any insight would be appreciated
>
> P.s beside broadcasting events is there any other way to achieve this ?
>
> Best regards
>

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

Reply via email to