Is it possible to call a function within a module that is defined in your primary app.coffee file?
I've got a piece of modular UI that I'd like to be able to call a function in the parent document.
Thanks in advance!
You could always pass it into your module... Or I think use window.myFunction to call it.
Jordan Robert Dobson, how would I go about doing that? I understand how to pass variables...
A function is much like variable. Instead of holding a value it holds some code to execute.
So instead of calling the function like myFunc()... Pass it as myFunc as an argument of function inside your module.
Then call that argument from inside module function.
Thanks, Jordan! I was able to figure out how to pass the function using parameters.