Took a look at it and googled some examples. I added a function to the controller in main.js with the same 4 parameters. Bind the function in the modal in html and the directive. It seems like I would have to know the values of the parameters while in the html, whereas we don't know those values until we're already in the abstractlistgroupitem controller.