Practise of angular JS