TypeDecorator

From Get docs
< @angular/coreAngular/docs/10/api/core/typedecorator


TypeDecorator

interface

An interface implemented by all Angular type decorators, which allows them to be used as decorators as well as Angular syntax.

See more...

interface TypeDecorator {
  <T extends Type<any>>(type: T): T
}

Description

@ng.Component({...})
class MyClass {...}

Methods

Invoke as decorator.

(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void

Parameters
target Object
propertyKey symbol Optional. Default is undefined.
parameterIndex number Optional. Default is undefined.
Returns

void



© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/TypeDecorator