In indexController.js of index.html, I want to call a method of loginController.js which does not belong to index.html. I already tried the following way: Firstly, I imported the controller in index.html by using
<script src="loginController.js"></script>
After that, I used $emit to call the method of loginController.js but I was failed. I suppose that loginController.js is not initialized in index.html, it does not belong to the module of index.html as well so it is not available for indexController.
I hope to be received some useful suggestion so I can resolve this problem.