It's possible to use when() without mapping to any controller or template?
This is how I have configured my routes:
app.config(function($routeProvider, $locationProvider) {
$locationProvider.html5Mode(true);
$routeProvider
.when('/presentations/:id', {});
});
I need to use routeParams in my controller:
app.controller('PresentationController', function($scope, $routeParams) {
console.log($routeParams);
});
This doesn't work. I don't need ngView but I added it in case is needed. My controller is already loaded with the ng-controller directive.