You must have an array of arrays. Either change your source array to be 
single dimensional or use error[0] to get the first item in the array.

{{error[0]}}
validationErrors = ['Department Name is required', 'Name is required', 
'Designation 
is required'];

- or -

{{error[0]}}



On Saturday, March 7, 2015 at 6:34:44 AM UTC-7, Velkumar Santhanaraj wrote:
>
> I am using ng-repeat to display my errors, i am getting vliadtion as 
> below... I need like below. i need to remove bracket & double quotes
>
>
>    - Department Name is required
>    - Name is required
>    - Desgination is required
>
>
>  <div ng-repeat="error in validationErrors" class="help-block">
>                     <ul>
>                         <li>
>                             {{error}}
>                         </li>
>                     </ul>
>                 </div> 
>
>
>    - ["Department Name is required"]
>    - ["Name is required"]
>    - ["Desgination is required"]
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to