Call prototype js functions in main.js

Hi guys, how do we pass data from swift to ionic, like evaluate js works but I can’t seems to have access to call the javascript files that’s in the main.js bundle.

How do we even call our function in main.js from developer console, I can’t even do that either.

stringByEvaluatingJavaScriptFromString would work to call a js from ios but I doesn’t recognize all the functions because all js was compiled into main.js bundle