Closed mtabaj closed 7 years ago
I don't think this is possible, because from one window you cant bind to objects on another window. There are 2 alternatives you may take: 1) Do not use separate windows here.. you are within a Single Page App and therefore use a JavaScript dialog component (such as http://jqueryui.com/dialog/) instead 2) For this particular example of "login", I would recommend you to have a separate login page which is invoked before you come in to the application. If you are successfully loggedIn in that page only you will be redirected to the SinglePage application. This is the recommended way I believe.
Hello, In a component I create a modal window responding to an event:
var Component = function(moduleContext) {
});
The template (view.html) is the following: <!DOCTYPE html>
Everything seems to work, but the created window is not binded to the viewmodel.
Thanks for your help, Marcos