D2R2 is a AngularJS Bases javascript library that contains all sorts of useful angular services, directives etc for building DHIS2 apps.