TypeDecorator
interface
npm Package | @angular/core |
---|---|
Module | import { TypeDecorator } from '@angular/core'; |
Source | core/src/util/decorators.ts |
Interface Overview
interface TypeDecorator { <T extends Type<any>>(type: T): T }
Description
An interface implemented by all Angular type decorators, which allows them to be used as ES7 decorators as well as Angular DSL syntax.
ES7 syntax:
@ng.Component({...}) class MyClass {...}
Members
<T extends Type<any>>(type: T): T
Invoke as ES7 decorator.
Overloads
(target: Object, propertyKey?: string | symbol, parameterIndex?: number): void
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/core/TypeDecorator