TypeDecorator

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

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

说明

ES7 syntax:

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

方法

Invoke as ES7 decorator.

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

参数

target

Type: Object.

propertyKey

Type: string | symbol.

可选. 默认值是 undefined.

parameterIndex

Type: number.

可选. 默认值是 undefined.

返回值

void