basic angular directive with map
moved $rootScope to service in get data