As said already gaGlobalOptions should not be injected in directives. Directives are configured through the options object in the parent scope.