blob: 4bf8a6afe045146e823631fa1232b7f625d50103 [file] [log] [blame]
Michael Landoed64b5e2017-06-09 03:19:04 +03001/**
2 * Created by obarda on 3/13/2016.
3 */
4'use strict';
5import {EventListenerService} from "./event-listener-service";
6import {EVENTS} from "../utils/constants";
7
8export class LoaderService {
9
10
11 constructor(private eventListenerService:EventListenerService) {
12
13 }
14
15 public showLoader(...args) {
16 this.eventListenerService.notifyObservers(EVENTS.SHOW_LOADER_EVENT, ...args);
17 }
18
19 public hideLoader(...args) {
20 this.eventListenerService.notifyObservers(EVENTS.HIDE_LOADER_EVENT, ...args);
21 }
22}
23
24LoaderService.$inject = ['EventListenerService'];