Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion src/mod2.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
/**
* @ngdoc module
* @alias mod2
* @module mod2
* @description
* Controllers and directives
*/
angular.module('mod2', ['mod1'])

/**
* @ngdoc function
* @alias MyCtrl
* @requires $scope
* @requires service1
* @description
* Attaches the `getItem` helper to the scope
*/
.controller('MyCtrl', ['$scope', 'service1', function($scope, service1) {
Expand All @@ -15,6 +24,10 @@ angular.module('mod2', ['mod1'])
}])

/**
* @ngdoc directive
* @alias directive1
* @param {*} attr1 an atrribute
* @description
* Does something special with the DOM
*/
.directive('directive1', function() {
Expand All @@ -28,4 +41,4 @@ angular.module('mod2', ['mod1'])
var div = angular.element('<div></div>');
}
};
});
});