AngularJS display first element in array
<p>Using Laravel for my API and the error response is like this:</p>

<p><a href="https://i.stack.imgur.com/vVPQE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vVPQE.png" alt="enter image description here"></a></p>

<p>I set that as a scope called errors and do a ng repeat to show them:</p>

<pre><code>&lt;ul ng-show="errors" class="list errors-list"&gt;
       &lt;li class="item" ng-repeat="error in errors"&gt;{{error}}&lt;/li&gt;
&lt;/div&gt;
</code></pre>

<p>However, this results in:</p>

<pre><code>["The title field is required."]
</code></pre>

<p>Is there a 'best' way to just get the text and not the speech marks or brackets?</p>

<p>I know I can just search and replace them but always like to know if there is a best way to do something.</p>