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

TypeDecorator

由所有 Angular 类型装饰器实现的接口,该接口允许将它们用作装饰器以及 Angular 语法。

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 {...}
    

方法

作为装饰器调用。

Invoke as decorator.

      
      (target: Object, propertyKey?: string | symbol, parameterIndex?: number): void
    
参数
target Object
propertyKey string | symbol
可选. 默认值是 `undefined`.
parameterIndex number
可选. 默认值是 `undefined`.
返回值

void