So I've just tried making the change from plain JS to angular and I'm wondering how I would access my controllers scope from another .js file. I've looked around and I've tried a couple of ways but no luck.
I've found similar questions such as below such as
AngularJS. How to call controller function from outside of controller component
AngularJS access scope from outside js function
I'm not looking to make any changes to a scope value, rather just use a function from within the scope. Any ideas on how I'd go about calling the function from the controllers scope in another .js file ?