mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: fix warning about an unknown decorator (#51237)
dgeni was complaning about an unknown decorator (`@Input`) PR Close #51237
This commit is contained in:
committed by
Alex Rickabaugh
parent
d86e637a75
commit
8913d3e407
@@ -11,8 +11,9 @@
|
||||
* Intended to be used as a transform function of an input.
|
||||
*
|
||||
* @usageNotes
|
||||
* @Input({ transform: booleanAttribute }) status!: boolean;
|
||||
*
|
||||
* ```typescript
|
||||
* @Input({ transform: booleanAttribute }) status!: boolean;
|
||||
* ```
|
||||
* @param value Value to be transformed.
|
||||
*
|
||||
* @publicApi
|
||||
@@ -28,7 +29,9 @@ export function booleanAttribute(value: unknown): boolean {
|
||||
* @param fallbackValue Value to use if the provided value can't be parsed as a number.
|
||||
*
|
||||
* @usageNotes
|
||||
* ```typescript
|
||||
* @Input({ transform: numberAttribute }) id!: number;
|
||||
* ```
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user