angular-docs-cn/public/docs/js/latest/api/metadata/ClassDefinition-interface.jade

45 lines
1.3 KiB
Plaintext
Raw Normal View History

p.location-badge.
exported from <a href='../metadata'>angular2/metadata</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.36/modules/angular2/src/core/util/decorators.ts#L1-L22">angular2/src/core/util/decorators.ts (line 1)</a>
:markdown
Annotations provide the additional information that Angular requires in order to run your
application. This module
contains <a href='ComponentMetadata-class.html'><code>ComponentMetadata</code></a>, <a href='DirectiveMetadata-class.html'><code>DirectiveMetadata</code></a>, and <a href='ViewMetadata-class.html'><code>ViewMetadata</code></a>
annotations, as well as
the <a href='../di/Host-var.html'><code>Host</code></a> annotation that is used by Angular to resolve dependencies.
.l-main-section
h2 Members
.l-sub-section
h3 extends?
:markdown
Optional argument for specifying the superclass.
.l-sub-section
h3 constructor
:markdown
Required constructor function for a class.
The function may be optionally wrapped in an `Array`, in which case additional parameter
annotations may be specified.
The number of arguments and the number of parameter annotations must match.
See <a href='Class-function.html'><code>Class</code></a> for example of usage.