Skip to content

Instantly share code, notes, and snippets.

@DimitarChristoff
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DimitarChristoff/44724c4f220853468f2a to your computer and use it in GitHub Desktop.
Save DimitarChristoff/44724c4f220853468f2a to your computer and use it in GitHub Desktop.
define(function(require){
'use strict';
var angular = require('angular');
angular.module('example', [])
.service('example-service', require('./ng-example-service'))
// invoking service straight away so that it initialises
.run(['example-service', function(/*popoutService*/){
}]);
});
define(function(require){
'use strict';
function foo($compile, $rootScope){
}
return ['$compile', '$rootScope', foo]
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment