Skip to content

Instantly share code, notes, and snippets.

@timkindberg timkindberg/app.js
Last active Oct 22, 2015

Embed
What would you like to do?
ng-forward ng1 migration (before)
angular.module('app', []);
(function() {
angular.module('app')
.directive('componentA', function() {
return ['serviceA', function linkFn(serviceA){}]
});
})()
(function() {
angular.module('app')
.directive('componentB', function() {
return ['serviceB', function linkFn(serviceA){}]
});
})()
(function() {
angular.module('app')
.service('serviceA', function() {});
})()
(function() {
angular.module('app')
.service('serviceB', function() {});
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.