Practice of angularJS