I have an Angular application that is currently structured with everything in one controller. I would like to split it into multiple controllers so that each controller can focus on specific actions rather than having a mixture of functions with different purposes in one controller.
Here is the existing code snippet:
var videoApp = angular.module('videoApp', ['videoAppFilters', 'ui.unique', 'angularUtils.directives.dirPagination']);
videoApp.controller('VideoListCtrl', function ($scope, $http, $filter) {
// Controller code here
});
I am looking for guidance on how to effectively split this code into multiple controllers and how to seamlessly pass data between them.