interface
An interface implemented by all Angular type decorators, which allows them to be used as decorators as well as Angular syntax.
interface TypeDecorator { <T extends Type<any>>(type: T): T }
@ng.Component({...}) class MyClass {...}
call signature | |||||||||
---|---|---|---|---|---|---|---|---|---|
Invoke as decorator. | |||||||||
|
type | T |
T
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void
target | Object | |
propertyKey | string | symbol | Optional. Default is |
parameterIndex | number | Optional. Default is |
void
(target: unknown, context: unknown): void
target | unknown | |
context | unknown |
void
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/TypeDecorator