title: Pass and process an array from JS to Spark in Zeppelin
body: <p>I have to visualiase some map thingy in Zeppelin via spark and JS (angular interpreter in this case). Zeppelin has <a href="https://zeppelin.apache.org/docs/0.8.1/usage/other_features/zeppelin_context.html" rel="nofollow noreferrer">this</a> binding feature but it gives a little knowledge about usage.</p>
  
  <p>I would like to click on the button, evaluate some stuff, than send the id_selected_arr to the spark via binding.</p>
  
  <p>In %angular window</p>
  
  <pre><code>&lt;input type="button" value="Click me" ng-click="eval()" ng-model="id_selected_arr"/&gt;
  </code></pre>
  
  <p>In %spark2 window</p>
  
  <pre><code>var result = z.angular("id_selected_arr")
  </code></pre>
  
  <p>I get: result: Object = id_selected_arr </p>
  
  <p>So my questios are: Did i actually send the array via binding? And how can I process this returned object in spark, such as get elements in the passed array?</p>
  
  <p>Edit: I had to use oldschool style of calling a click function :</p>
  
  <pre><code>&lt;div id="map" style="height: 300px; width: 50%" ng-model="id_selected_arr"/&gt;
  &lt;input type="button" value="Click me" onclick="eval()"/&gt;
  </code></pre>