Hi I am trying to prompt a dialog for the users but it is not prompting in an routed page. In the Index.html the dialog prompts just fine. Is there a solution for letting the dialog prompt also in an routed page?
THIS CODE I PASTED IN “APP.JS”:
$$(’.open-password’).on(‘click’, function () {
app.dialog.password(‘Enter your username and password’, function (password) {
app.dialog.alert(‘Thank you!
Password:’ + password);
});
});
THIS CODE BELOW IS PASTED IN MY ROUTED PAGE “CHANGE.HTML”:
<p class="row">
<button class="col button open-password">Password</button>
</p>