Dynamic ID on Routes.js

So guys, I have this structure:

  path: '/evento/:id',
    url: './pages/evento.html',

and have this as function

pageAfterIn: function (e, page) {
      var url = ':id';
      app.request.get('http://prescricoesodontologicas-ga.umbler.net/ravers/test3.php?eventoid=###', function(data){
      $("#content-evento").html(data);
    });

Where ### I need to insert the :id to request a html script directly from my server.

How to pass the route parameters to there??

page.route.params.id
2 Likes

Thanks!!! Solved -

Almost 2 hours reading about and don’t got it.