UNPKG

1.09 kBJavaScriptView Raw
1/**
2 * @license
3 * Copyright Google Inc. All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { makeDecorator, makeParamDecorator } from './util/decorators';
9/**
10 * Inject decorator and metadata.
11 *
12 * @stable
13 * @Annotation
14 */
15export var Inject = makeParamDecorator('Inject', [['token', undefined]]);
16/**
17 * Optional decorator and metadata.
18 *
19 * @stable
20 * @Annotation
21 */
22export var Optional = makeParamDecorator('Optional', []);
23/**
24 * Injectable decorator and metadata.
25 *
26 * @stable
27 * @Annotation
28 */
29export var Injectable = makeDecorator('Injectable', []);
30/**
31 * Self decorator and metadata.
32 *
33 * @stable
34 * @Annotation
35 */
36export var Self = makeParamDecorator('Self', []);
37/**
38 * SkipSelf decorator and metadata.
39 *
40 * @stable
41 * @Annotation
42 */
43export var SkipSelf = makeParamDecorator('SkipSelf', []);
44/**
45 * Host decorator and metadata.
46 *
47 * @stable
48 * @Annotation
49 */
50export var Host = makeParamDecorator('Host', []);
51//# sourceMappingURL=metadata.js.map
\No newline at end of file