From b8e54ef57267e0c4a82eec5abe39370b9fad10d4 Mon Sep 17 00:00:00 2001 From: Shahar Talmi Date: Sat, 16 Aug 2014 12:25:09 +0300 Subject: [PATCH] docs(*): use @description instead of @returns for properties Dgeni-packages was not actually rendering the `@returns` text. Closes #8639 --- src/loader.js | 5 +++-- src/ng/compile.js | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/loader.js b/src/loader.js index e400345d48c4..8e13723e6e7c 100644 --- a/src/loader.js +++ b/src/loader.js @@ -118,7 +118,7 @@ function setupModuleLoader(window) { * @ngdoc property * @name angular.Module#requires * @module ng - * @returns {Array.} List of module names which must be loaded before this module. + * * @description * Holds the list of modules which the injector will load before the current module is * loaded. @@ -129,8 +129,9 @@ function setupModuleLoader(window) { * @ngdoc property * @name angular.Module#name * @module ng - * @returns {string} Name of the module. + * * @description + * Name of the module. */ name: name, diff --git a/src/ng/compile.js b/src/ng/compile.js index 51fa507be1c6..6f3d1f57fde8 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -2148,8 +2148,10 @@ function directiveNormalize(name) { /** * @ngdoc property * @name $compile.directive.Attributes#$attr - * @returns {object} A map of DOM element attribute names to the normalized name. This is - * needed to do reverse lookup from normalized name back to actual name. + * + * @description + * A map of DOM element attribute names to the normalized name. This is + * needed to do reverse lookup from normalized name back to actual name. */