Skip to content

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
What would you like to do?
For gulp-angular-filesort/issues/26
angular.module('A').controller('C', function(data) {
angular.module('A', ['B']);
angular.module('B', []);
angular.module('B').service('data', function() {
return {x: 'from B'};
<html data-ng-app="A">
<meta charset="utf-8" />
<script src=""></script>
<body data-ng-controller="C">
<script src="A-define.js"></script><!-- must be before A-controller.js -->
<script src="B-define.js"></script><!-- must be before B-service.js -->
<script src="A-controller.js"></script>
<script src="B-service.js"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment