[visualization-api] Re: Google Charts and AngularJS ui-router module

2014-05-08 Thread Andrew Gallant
Capturing user selections is fairly easy. Create a select event handler for the chart: google.visualization.events.addListener(chart, 'select', function () { var selection = chart.getSelection(); if (selection.length) { // then the user selected an element (instead of

[visualization-api] Re: Google Charts and AngularJS ui-router module

2014-05-07 Thread Neil Camara
Hi Andrew, I forgot to mention that ui-router is a module for AngularJS. The ui-sref is somewhat similar to href on a href=url link/a. However, the parameter that you assign to ui-sref is not a url but a state. This state will have few different properties like url, html template and the