title: AngularJS: Splitted string as array, get first element
body: <p>Probably it's a dumb question but I can't really get out of it.
  In a AngularJS webapp I've splitted with a filter a String got from a JSON I can't modify: now the whole string (date+hour) is divided into an array made of 2 elements(array[0]=date, array[1]=hour), but I don't know how to get only the first one in the HTML.</p>
  
  <p>I can't pass the single element as a scope and I can't use the ng-repeat because I have to assign different class to every element.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;span class="time"&gt;{{manif.avvenimento.data | split:' '}}&lt;/span&gt;
  </code></pre>
  
  <p>Result printed in HTML:</p>
  
  <pre><code>["03/02/2014","20:40"]
  </code></pre>
  
  <p>I need to get something like this:</p>
  
  <pre><code>&lt;span class="A"&gt;03/02/2014&lt;/span&gt;
  &lt;span class="B"&gt;20:40&lt;/span&gt;
  </code></pre>
  
  <p>Thank you all!</p>