Thanks for the reply. Here's what my module's files look like:
Then inside cobApp.js and cobControllers.js:
These function perfectly while logged in as you can see in an example of what my page looks like:
This is a radio check that opens/hides my form options and it's working while logged in but once the user logs out:
The app breaks cause my controller is undefined. Using the chrome web developer tools I can find all my js files being passed to the client. I cleared the cache and a hard reload of the page to make sure everything was been passed.
All my code is being passed properly. This is what the preview looks like:
It's just odd to me that not being logged in causes these problems. It's not a real issue right now but it might be if I build modules for registration or log ins or something where the user isn't logged.
https://docs.angularjs.org/error/ng/areq?p0=CoBCtrl&p1=not%20a%20function,%20got%20undefined
https://docs.angularjs.org/error/$injector/nomod?p0=cobApp
Maybe it's something I'm doing wrong or am unaware about. Let me know any thoughts you might have. Thanks!