I have an Angular js 1.6 Application. I created a file called "
" with my application.
Unfortunately, the multitude of controllers I am using is giving me way too many lines of code in one file and becoming to messy.
I want to keep my large extensive list of
angular js controllers in
one file called "
controllers.js " and my "
myapp.js " with routes, tables separate.
However, I want all of my various controllers found in " controllers.js " to respond and connect easily to my " myapp.js " file containing my business logic.
Everything works fine on one page and fails when i separate them in 2 files. I must be doing something wrong.
How do I accomplish this?
I need a code sample to best illustrate this. Can anyone help me out.
- mrjap1