>
>  
>

I suspect I should aim for a service function instead of a controller 
function.

I figured out the syntax to dynamically call a function in the 
myMenuItem1's controller, but I want to call a function that belongs to 
theDialogToOpen, but the menu item has no business trying to know what the 
dialog item needs to do when opening up
I then figured out how to have the menu item tell the directive which 
controller to use, but the menu item has no business knowing that.  

Any takers on how to make a service call dynamically?   Then (I guess, as 
I'm still very new to this), I wouldn't need a controller context in the 
first place.  Is that correct?

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