I have something like this in the app.js of my application:
app.config( function( $routeProvider ) {
$routeProvider.when('evento/:id/:caminho', {
templateUrl: 'views/evento.html',
controller: 'PrincipalEventoController'
});
$routeProvider.when('evento/:id/:caminho/sobre', {
templateUrl: 'views/sobre.html',
controller: 'SobreEventoController'
});
Laravel's route is localhost:8000/evento/1/nome-do-evento
.
I have a div with ng-view
on the page.
The problem is that the div with ng-view
is not loading the content I want. Neither the view nor the controller defined in the app.js.
Always give the message "Sorry, the page you are looking for could not be found".
I think the solution is simple, but I'm not getting it and I decided to ask the help of the masters.
Embrace them all.