Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No works in Angualr2 or > #50

Open
CristianHCol opened this issue Jun 26, 2018 · 0 comments
Open

No works in Angualr2 or > #50

CristianHCol opened this issue Jun 26, 2018 · 0 comments

Comments

@CristianHCol
Copy link

CristianHCol commented Jun 26, 2018

Hello,
i was trying to impelemt in my angular2 app but its no works. i can initialize de portHole object but the listener never is called.

    var windowProxy;
    windowProxy = new Porthole.WindowProxy('', 'iframeSrc');
    // Register an event handler to receive messages;
    // if (window.addEventListener) {
    //     window.addEventListener('message', this.handledMessage.bind(this), false);
    // } else {
    //      (<any>window).attachEvent('onmessage', this.handledMessage.bind(this));
    // }

    windowProxy.addEventListener((event: any) =>  {
        debugger;
    });

Any help please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant