SHARE
TWEET

Untitled

a guest Oct 12th, 2016 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. angular.module('angularDemo.messagingFactory', []).factory("messagingService", messagingService);
  2.  
  3. function messagingService($rootscope, $scope) {
  4.   var factory = {};
  5.   factory.on = function(eventName, callback) {
  6.  
  7.   };
  8.  
  9.   factory.emit = function(eventName, data, callback) {
  10.  
  11.   };
  12.   return factory;
  13. }
  14.  
  15. messagingService.$inject = ['$rootscope', '$scope'];
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top