Practice in AngularJS