Files
redash/client/app/services/events.js
Levko Kravets b0b4d5e26a Convert Angular services to CommonJS-style and use them in React components instead of injecting (#3331)
* Refine Auth service: remove dead code and fix race condition
* Export services in CommonJS style
* Refine Users, Events and OfflineListener services
* Refactor Notifications service - rewrite to CommonJS
* Replace Angular service injection with imports in React components
* Fix Footer tests
* Events service -> recordEvent function
* CR1
2019-01-24 16:24:58 +02:00

12 lines
203 B
JavaScript

import recordEvent from '@/services/recordEvent';
function Events() {
this.record = recordEvent;
}
export default function init(ngModule) {
ngModule.service('Events', Events);
}
init.init = true;