Call external js file function in Angular js controller

后端 未结 5 1976
挽巷
挽巷 2021-02-18 20:42

I have the external js file which has more functions.

I need to call these functions from angular controller.

For example: external.js



        
5条回答
  •  南旧
    南旧 (楼主)
    2021-02-18 20:52

    Where is you call $scope.getLoginForm()?. I think you never call it. So fun() is not called, so you not see any thing. You need call $scope.getLoginForm(). Two way to call In HTML Or in Javascript $scope.getLoginForm() Good luck !

提交回复
热议问题