I have a route provider defined:
$routeProvider.when('/interview', {
controller: 'Interview',
templateUrl: function(parms) {
return parms.target + '/partials/Interview.html';
}
});
But I get the following exception:
Uncaught TypeError: Object function (parms) {
return 'partials/Interview.html';
} has no method 'match'
With breakpoints, I found that AngularJS thinks my function is an URL.
Completely confused.