summaryrefslogtreecommitdiffstats
path: root/catalog-ui/app/scripts/services/loader-service.ts
blob: 6a1a1febe115078a6743d3cb88fff2a9c0a6a35c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
 * Created by obarda on 3/13/2016.
 */
/// <reference path="../references"/>
module Sdc.Services {
    'use strict';

    export class LoaderService {


        constructor(private eventListenerService: Services.EventListenerService) {

        }

        public showLoader(...args) {
            this.eventListenerService.notifyObservers(Utils.Constants.EVENTS.SHOW_LOADER_EVENT, ...args);
        }

        public hideLoader(...args) {
            this.eventListenerService.notifyObservers(Utils.Constants.EVENTS.HIDE_LOADER_EVENT, ...args);
        }

    }

    LoaderService.$inject = ['EventListenerService'];
}