I have many controllers, so i want to call all of them in one js file in my html document for example: And in that file call all my controllers
Asked
Active
Viewed 34 times
0
-
1What do you mean by calling a controller? You mean executing the controller function? – Alisson Reinaldo Silva May 21 '17 at 23:58
-
You can create your controllers in a single JS file and use it for your web application. We separate controllers in different files for separation of concern and easier maintainability. – jegtugado May 22 '17 at 00:04
1 Answers
0
Concatenate all your controllers to a single file and call that file from HTML.
To concatenate, Gulp or Grunt or Webpack can be used.

Nagendran
- 1
- 1