working on trainings service. Fuck the angular-resource component.