var f7_routes = [
{
path: '/login-screen/',
componentUrl: './pages/login-test.html',
},
{
path: '/',
url: './index.html',
on: {
pageAfterIn: function (e, page) {
// do something after page gets into the view
},
pageInit: function (e, page) {
// HELP HERE !!! I SHOULD FORCE OPEN THE LOGIN HERE
}
},
{
path: '(.*)',
url: './404.html',
},
];
app.routes.push( f7_routes);
// Init/Create main view
var mainView = app.views.create('.view-main', {
url: '/',
routes: f7_routes
});
I thought this is a good place to ask about the online example also : https://framework7.io/docs/login-screen.html
The modal option works great but when you try as a page there is no way to continue. You can not type in the username/password or close the window. chrome browser