TypeDecorator
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
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void
(target: unknown, context: unknown): void
}
Description
@ng.Component({...})
class MyClass {...}
Methods
call signature |
---|
Invoke as decorator. |