Learning stuff about angularJS