From 4d2f7318d112e63171ba9b6fa5f310039f3c0b2f Mon Sep 17 00:00:00 2001 From: Ben Tesser Date: Tue, 21 Oct 2014 06:43:25 -0400 Subject: [PATCH] Add ngdoc annotations to mod2.js Using new alias syntax... maybe I should hold off and use name though --- src/mod2.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mod2.js b/src/mod2.js index 65ecd77..116ce91 100644 --- a/src/mod2.js +++ b/src/mod2.js @@ -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) { @@ -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() { @@ -28,4 +41,4 @@ angular.module('mod2', ['mod1']) var div = angular.element('
'); } }; -}); \ No newline at end of file +});