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

OnReady listener does not trigger the event #7

Closed
jecepeda opened this issue Aug 21, 2018 · 2 comments
Closed

OnReady listener does not trigger the event #7

jecepeda opened this issue Aug 21, 2018 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jecepeda
Copy link

Hi,

First of all, thank you for the project, the code it's pretty clear and it's easy to use. I've found a problem regarding the ready event. If you put inside your component a event binding for the ready event, the function associated to it does not execute. e.g. If you have this html

<google-chart 
[type]="chartType" [data]="chartData" [options]="options" 
[width]="width" [height]="height" (ready)="onReady()"></google-chart>

And you put a function such as:

 onReady() {
    console.log(height);
}

The code is not being executed when the chart is loaded.

Is there a way to solve this?
Thanks again for the library.

Regards

@FERNman FERNman self-assigned this Aug 21, 2018
@FERNman FERNman added the bug Something isn't working label Aug 21, 2018
@FERNman
Copy link
Owner

FERNman commented Aug 21, 2018

This should be fixed now, at least in the demos it now works. Thanks for pointing it out!

@jecepeda
Copy link
Author

Wow, thank you for the speed of the response!

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants