TypeDecorator
interface
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 }
Description
ES7 syntax:
@ng.Component({...}) class MyClass {...}
Methods
call signature | ||||||
---|---|---|---|---|---|---|
Invoke as ES7 decorator. | ||||||
|
target | Type: |
propertyKey | Type: Optional. Default is |
parameterIndex | Type: Optional. Default is |
Returns
void
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/core/TypeDecorator