填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

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
}
    

说明

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

方法

Invoke as 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