Variation using Angular.js of my previous version made with jQuery