mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00: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:
parent
d86e637a75
commit
8913d3e407
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue