Used ng-repeat directive to print items from array