Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit b8e54ef

Browse files
shahatacaitp
authored andcommitted
docs(*): use @description instead of @returns for properties
Dgeni-packages was not actually rendering the `@returns` text. Closes #8639
1 parent e3a2ecf commit b8e54ef

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/loader.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function setupModuleLoader(window) {
118118
* @ngdoc property
119119
* @name angular.Module#requires
120120
* @module ng
121-
* @returns {Array.<string>} List of module names which must be loaded before this module.
121+
*
122122
* @description
123123
* Holds the list of modules which the injector will load before the current module is
124124
* loaded.
@@ -129,8 +129,9 @@ function setupModuleLoader(window) {
129129
* @ngdoc property
130130
* @name angular.Module#name
131131
* @module ng
132-
* @returns {string} Name of the module.
132+
*
133133
* @description
134+
* Name of the module.
134135
*/
135136
name: name,
136137

src/ng/compile.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2148,8 +2148,10 @@ function directiveNormalize(name) {
21482148
/**
21492149
* @ngdoc property
21502150
* @name $compile.directive.Attributes#$attr
2151-
* @returns {object} A map of DOM element attribute names to the normalized name. This is
2152-
* needed to do reverse lookup from normalized name back to actual name.
2151+
*
2152+
* @description
2153+
* A map of DOM element attribute names to the normalized name. This is
2154+
* needed to do reverse lookup from normalized name back to actual name.
21532155
*/
21542156

21552157

0 commit comments

Comments
 (0)