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 {...}
      
      @ng.Component({...})
class MyClass {...}
    

方法

Invoke as ES7 decorator.

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

可选. 默认值是 undefined.

parameterIndex number

可选. 默认值是 undefined.

返回值

void