Getting Routing Panel to work with Framework7

I have tried numerous methods to get routing panel working with FW7. With Kitchen Sink install it works but as soon as you do a custom setup, empty file or file with routes I get this:

22

Maybe a how to if this is not a bug please

this is the content of my routes.js file just to keep it simple:

routes = [
  {
    path: '/',
    url: './index.html',
  },
  {
    path: '(.*)',
    url: './pages/404.html',
  },
];

you need to have a var in front of routes, so:

var routes = [
  {
    path: '/',
    url: './index.html',
  },
  {
    path: '(.*)',
    url: './pages/404.html',
  },
];
2 Likes