Last active
August 29, 2015 14:06
-
-
Save DimitarChristoff/44724c4f220853468f2a to your computer and use it in GitHub Desktop.
This file contains 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
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*/){ | |
}]); | |
}); |
This file contains 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
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