mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
The API reference only attaches a `@param` description to a parameter
when the names match. Several APIs documented parameters under a
different name than the one in the signature, so angular.dev rendered
those parameters with an empty description.
Update the JSDoc to use the actual parameter names:
- core: `ViewContainerRef.move()` documented `index` instead of
`currentIndex`.
- core: `inject()` still documented the `flags` parameter, which was
replaced by `options` when `InjectFlags` was removed from the public
API. Use the same description as the other `inject()` overloads.
- core: `twoWayBinding()` documented `eventName` instead of `publicName`.
- common: `Location.subscribe()` documented `value` and `exception`
instead of the `onNext` and `onThrow` callbacks, and didn't document
`onReturn`.
- common/upgrade: `UrlCodec.encodeSearch()`, `decodeSearch()`,
`encodeHash()` and `decodeHash()` documented `path` instead of
`search` or `hash`, and the first `normalize()` overload documented
`path` instead of `href`. Also fix a "has string" typo.
- router: `DefaultTitleStrategy.updateTitle()` documented a `title`
parameter instead of `snapshot`. Also update its description, since
it builds the title from the router state rather than setting a
given value.
- forms: `minDate()` and `maxDate()` documented `minDate` and `maxDate`
instead of `minDateValue` and `maxDateValue`.
Verified by rebuilding the docs with `//adev:build` and checking that
each of these parameters now has a description in the generated API
reference pages, and that no other `@param` name mismatches remain
besides `IterableChanges.forEachOperation` (which documents its
callback's arguments) and the `QueryList` constructor.
(cherry picked from commit 6e024600e0)