View eventbroker.service.js
(function() {
'use strict';
angular
.module('myModule')
.provider('eventBroker', eventBroker);
/* @ngInject */
function eventBroker() {
var that = this;