Last active
December 11, 2015 05:58
-
-
Save petebacondarwin/4556147 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('onlineModule',[]).factory('dataService', { ... }); | |
angular.module('offlineModule',[]).factory('dataService', { ... }); | |
var app = angular.module('myApp', ['onlineModule']); // onlineModule or offlineModule | |
app.service('x', function (dataService) { // $dataService could be onlineModule.dataService or offlineModule.dataService | |
// online or offline? we don't care! | |
}); | |
app.service('y', function (dataService) { | |
// online or offline? we don't care! | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment