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.
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.
HTML:
<span class="time">{{manif.avvenimento.data | split:' '}}</span>
Result printed in HTML:
["03/02/2014","20:40"]
I need to get something like this:
<span class="A">03/02/2014</span>
<span class="B">20:40</span>
Thank you all!