angularJS macro tracker