I am trying to create a base controller where I can use functions that all of the other controllers need together. I want to inherit or instantiate the JavaScript page on my lower controllers.
I looked online and saw different suggestions but it hasn't worked for me. I have put the 2 scripts in order on the layout. I created a base controller:
var app = angular.module('mainApp', []);
I am trying to access it int he other controller:
baseController.app
.controller('listsController'.....
How do I get access to the baseController (which will in the future have functions) in my listController file?