0
I have something like this in my app.js:
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'
});
On the route of the Laravel is localhost:8000/evento/1/nome-do-evento
.
I have a div with ng-view
on the page.
The problem is that I share it with ng-view
is not loading the content I want. Neither the view, nor the controller defined in the app.js.
It always gives the message "Sorry, the page you are Looking for could not be found".
I believe that the solution is simple, but I am not succeeding and I decided to ask for the help of the masters.
Hug to all.