added directives to loop through an array of products