I'm setting up a directive that will set up a JQuery open dialog command on it. The name of the element on the page to open is the parameter, i.e:
<li id="myMenuItem1" data-open-dialog="theDialogToOpen">The Dialog</li> later on, in the code, is the dialog that I want that menu item to open: <div id="theDialogToOpen" data-dialog-open-height="200" data-dialog-open-width="600" data-dialog-prepopulate-function-name="SomeController.SomeFunction"> The directive successfully gets the height and width values and uses them to open the dialog. If I make the function I'm invoking a global javascript function, I can invoke it before opening the dialog. But, logically, theDialogToOpen should have it's own controller and the pre-populate function should be in that controller. Let's say the controller name is "theDialogToOpenController" and the function name is "PrePopulate". How would I have the directive invoke that function? I can't figure out the syntax to make it so. :( Thanks! -- 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.
