a bit further in the angularJS integration