Hi Batoe,

have a look at this plunk 
<http://plnkr.co/edit/TDp7tcO5tTSDQjQsbseG?p=preview>. It takes an array 
and it shows how to loop trough each of them showing/hiding as needed.

Don't use ng-init like that. it puts business logic into the template, and 
will make maintenance more difficult as it needs to be.
Also do yourself a favor and  read through the style-guide 
<https://github.com/johnpapa/angular-styleguide>

If you have questions, don't hesitate to ask!
Regards
Sander


-- 
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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to