Im trying to load a login screen when my app loads, but I can´t make it to load at all.
I don’t know what I´m missing.
I have this in a separate page, login.asp from the standalone example in the docs.
<div class="login-screen">
<!-- Default view-page layout -->
<div class="view">
<div class="page">
<!-- page-content has additional login-screen content -->
<div class="page-content login-screen-content">
<div class="login-screen-title">My App</div>
Some content here...
</div>
</div>
</div>
And then I try to create and open it like this.
var loginScreen = app.loginScreen.create('.view', {
routes: [{
path: '/login-screen/',
url: 'https://domain.se/login.asp',
options: {
animate: false,
},
},
],
});
app.loginScreen.open()
And in my index.html I have
<div id="login" class="view"></div>
Any input really appreciated, thanks.