Is it possible to load a custom controller specifying the filename each partial in angularjs?
Something like this:
var demo = angular.module('demo', ['ngRoute', 'ui.bootstrap', 'demo.filters', 'demo.services', 'demo.directives', 'demo.controllers'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/custom',
{
templateUrl: 'partials/custom.html',
controller: customController.js
});
});