@angular/core 6.0.3 → 6.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (233) hide show
  1. package/bundles/core-testing.umd.js +61 -237
  2. package/bundles/core-testing.umd.js.map +1 -1
  3. package/bundles/core-testing.umd.min.js +11 -4
  4. package/bundles/core-testing.umd.min.js.map +1 -1
  5. package/bundles/core.umd.js +591 -2007
  6. package/bundles/core.umd.js.map +1 -1
  7. package/bundles/core.umd.min.js +4 -32
  8. package/bundles/core.umd.min.js.map +1 -1
  9. package/core.metadata.json +1 -1
  10. package/esm2015/core.externs.js +3 -3
  11. package/esm2015/src/application_init.js +2 -9
  12. package/esm2015/src/application_module.js +1 -10
  13. package/esm2015/src/application_ref.js +15 -30
  14. package/esm2015/src/change_detection/change_detector_ref.js +7 -5
  15. package/esm2015/src/change_detection/differs/iterable_differs.js +4 -3
  16. package/esm2015/src/change_detection/differs/keyvalue_differs.js +4 -3
  17. package/esm2015/src/change_detection/pipe_transform.js +3 -6
  18. package/esm2015/src/console.js +0 -11
  19. package/esm2015/src/di/forward_ref.js +8 -6
  20. package/esm2015/src/di/injectable.js +1 -4
  21. package/esm2015/src/di/injection_token.js +6 -8
  22. package/esm2015/src/di/injector.js +5 -10
  23. package/esm2015/src/di/metadata.js +1 -16
  24. package/esm2015/src/di/provider.js +47 -138
  25. package/esm2015/src/di/reflective_errors.js +14 -7
  26. package/esm2015/src/di/reflective_injector.js +22 -24
  27. package/esm2015/src/di/reflective_provider.js +11 -12
  28. package/esm2015/src/error_handler.js +2 -5
  29. package/esm2015/src/event_emitter.js +6 -3
  30. package/esm2015/src/i18n/tokens.js +7 -4
  31. package/esm2015/src/linker/compiler.js +1 -12
  32. package/esm2015/src/linker/query_list.js +4 -4
  33. package/esm2015/src/linker/system_js_ng_module_factory_loader.js +3 -10
  34. package/esm2015/src/linker/view_ref.js +10 -7
  35. package/esm2015/src/metadata/di.js +10 -16
  36. package/esm2015/src/metadata/directives.js +111 -33
  37. package/esm2015/src/metadata/lifecycle_hooks.js +9 -9
  38. package/esm2015/src/metadata/ng_module.js +19 -11
  39. package/esm2015/src/render3/node_manipulation.js +2 -3
  40. package/esm2015/src/render3/view_ref.js +7 -3
  41. package/esm2015/src/testability/testability.js +2 -16
  42. package/esm2015/src/version.js +1 -1
  43. package/esm2015/src/view/ng_module.js +4 -1
  44. package/esm2015/src/zone/ng_zone.js +2 -1
  45. package/esm2015/testing/src/fake_async.js +5 -3
  46. package/esm2015/testing/src/fake_async_fallback.js +5 -3
  47. package/esm2015/testing/src/logger.js +0 -7
  48. package/esm2015/testing/src/metadata_override.js +1 -1
  49. package/esm2015/testing/src/ng_zone_mock.js +0 -7
  50. package/esm2015/testing/src/test_bed.js +1 -34
  51. package/esm2015/testing/src/test_compiler.js +1 -12
  52. package/esm5/index.js +5 -1
  53. package/esm5/public_api.js +6 -1
  54. package/esm5/src/application_init.js +3 -5
  55. package/esm5/src/application_module.js +2 -2
  56. package/esm5/src/application_ref.js +35 -211
  57. package/esm5/src/application_tokens.js +1 -1
  58. package/esm5/src/change_detection/change_detection.js +1 -1
  59. package/esm5/src/change_detection/change_detection_util.js +7 -72
  60. package/esm5/src/change_detection/change_detector_ref.js +1 -1
  61. package/esm5/src/change_detection/constants.js +1 -24
  62. package/esm5/src/change_detection/differs/default_iterable_differ.js +26 -209
  63. package/esm5/src/change_detection/differs/default_keyvalue_differ.js +7 -38
  64. package/esm5/src/change_detection/differs/iterable_differs.js +5 -42
  65. package/esm5/src/change_detection/differs/keyvalue_differs.js +6 -51
  66. package/esm5/src/change_detection/pipe_transform.js +1 -1
  67. package/esm5/src/change_detection.js +6 -1
  68. package/esm5/src/codegen_private_exports.js +1 -1
  69. package/esm5/src/console.js +2 -7
  70. package/esm5/src/core.js +6 -1
  71. package/esm5/src/core_private_export.js +1 -1
  72. package/esm5/src/core_render3_private_export.js +2 -1
  73. package/esm5/src/debug/debug_node.js +3 -15
  74. package/esm5/src/di/defs.js +1 -1
  75. package/esm5/src/di/forward_ref.js +7 -6
  76. package/esm5/src/di/injectable.js +2 -3
  77. package/esm5/src/di/injection_token.js +5 -83
  78. package/esm5/src/di/injector.js +13 -27
  79. package/esm5/src/di/metadata.js +1 -6
  80. package/esm5/src/di/provider.js +1 -1
  81. package/esm5/src/di/r3_injector.js +13 -39
  82. package/esm5/src/di/reflective_errors.js +14 -7
  83. package/esm5/src/di/reflective_injector.js +19 -265
  84. package/esm5/src/di/reflective_key.js +4 -45
  85. package/esm5/src/di/reflective_provider.js +17 -35
  86. package/esm5/src/di/scope.js +1 -1
  87. package/esm5/src/di.js +6 -1
  88. package/esm5/src/error_handler.js +7 -66
  89. package/esm5/src/errors.js +1 -1
  90. package/esm5/src/event_emitter.js +4 -95
  91. package/esm5/src/i18n/tokens.js +9 -49
  92. package/esm5/src/linker/compiler.js +9 -69
  93. package/esm5/src/linker/component_factory.js +2 -18
  94. package/esm5/src/linker/component_factory_resolver.js +1 -1
  95. package/esm5/src/linker/element_ref.js +2 -32
  96. package/esm5/src/linker/ng_module_factory.js +3 -25
  97. package/esm5/src/linker/ng_module_factory_loader.js +2 -10
  98. package/esm5/src/linker/query_list.js +12 -112
  99. package/esm5/src/linker/system_js_ng_module_factory_loader.js +4 -16
  100. package/esm5/src/linker/template_ref.js +2 -26
  101. package/esm5/src/linker/view_container_ref.js +2 -38
  102. package/esm5/src/linker/view_ref.js +10 -115
  103. package/esm5/src/linker.js +2 -1
  104. package/esm5/src/metadata/di.js +7 -25
  105. package/esm5/src/metadata/directives.js +111 -20
  106. package/esm5/src/metadata/lifecycle_hooks.js +1 -1
  107. package/esm5/src/metadata/ng_module.js +14 -9
  108. package/esm5/src/metadata/view.js +1 -20
  109. package/esm5/src/metadata.js +1 -1
  110. package/esm5/src/platform_core_providers.js +1 -1
  111. package/esm5/src/profile/profile.js +1 -1
  112. package/esm5/src/profile/wtf_impl.js +1 -1
  113. package/esm5/src/reflection/platform_reflection_capabilities.js +1 -1
  114. package/esm5/src/reflection/reflection.js +1 -1
  115. package/esm5/src/reflection/reflection_capabilities.js +3 -8
  116. package/esm5/src/reflection/reflector.js +2 -10
  117. package/esm5/src/reflection/types.js +1 -1
  118. package/esm5/src/render/api.js +7 -71
  119. package/esm5/src/render.js +2 -1
  120. package/esm5/src/render3/assert.js +1 -1
  121. package/esm5/src/render3/component.js +6 -5
  122. package/esm5/src/render3/definition.js +6 -8
  123. package/esm5/src/render3/di.js +9 -14
  124. package/esm5/src/render3/errors.js +1 -1
  125. package/esm5/src/render3/hooks.js +2 -2
  126. package/esm5/src/render3/index.js +11 -1
  127. package/esm5/src/render3/instructions.js +52 -38
  128. package/esm5/src/render3/interfaces/container.js +1 -1
  129. package/esm5/src/render3/interfaces/definition.js +1 -1
  130. package/esm5/src/render3/interfaces/injector.js +1 -1
  131. package/esm5/src/render3/interfaces/node.js +1 -1
  132. package/esm5/src/render3/interfaces/projection.js +1 -1
  133. package/esm5/src/render3/interfaces/query.js +1 -1
  134. package/esm5/src/render3/interfaces/renderer.js +1 -3
  135. package/esm5/src/render3/interfaces/view.js +1 -1
  136. package/esm5/src/render3/ng_dev_mode.js +1 -1
  137. package/esm5/src/render3/node_assert.js +1 -1
  138. package/esm5/src/render3/node_manipulation.js +12 -15
  139. package/esm5/src/render3/node_selector_matcher.js +2 -2
  140. package/esm5/src/render3/pipe.js +1 -1
  141. package/esm5/src/render3/pure_function.js +1 -1
  142. package/esm5/src/render3/query.js +11 -59
  143. package/esm5/src/render3/util.js +1 -1
  144. package/esm5/src/render3/view_ref.js +15 -345
  145. package/esm5/src/sanitization/html_sanitizer.js +8 -12
  146. package/esm5/src/sanitization/inert_body.js +8 -72
  147. package/esm5/src/sanitization/sanitization.js +1 -1
  148. package/esm5/src/sanitization/security.js +2 -37
  149. package/esm5/src/sanitization/style_sanitizer.js +1 -1
  150. package/esm5/src/sanitization/url_sanitizer.js +1 -1
  151. package/esm5/src/testability/testability.js +21 -143
  152. package/esm5/src/type.js +1 -1
  153. package/esm5/src/util/decorators.js +1 -1
  154. package/esm5/src/util/lang.js +1 -1
  155. package/esm5/src/util/property.js +1 -1
  156. package/esm5/src/util.js +6 -1
  157. package/esm5/src/version.js +3 -13
  158. package/esm5/src/view/element.js +7 -7
  159. package/esm5/src/view/entrypoint.js +1 -1
  160. package/esm5/src/view/errors.js +1 -1
  161. package/esm5/src/view/index.js +1 -1
  162. package/esm5/src/view/ng_content.js +1 -1
  163. package/esm5/src/view/ng_module.js +4 -1
  164. package/esm5/src/view/provider.js +12 -12
  165. package/esm5/src/view/pure_expression.js +1 -1
  166. package/esm5/src/view/query.js +6 -6
  167. package/esm5/src/view/refs.js +8 -14
  168. package/esm5/src/view/services.js +16 -20
  169. package/esm5/src/view/text.js +1 -1
  170. package/esm5/src/view/types.js +19 -41
  171. package/esm5/src/view/util.js +5 -5
  172. package/esm5/src/view/view.js +4 -6
  173. package/esm5/src/view/view_attach.js +5 -5
  174. package/esm5/src/zone/ng_zone.js +22 -257
  175. package/esm5/src/zone.js +2 -1
  176. package/esm5/testing/index.js +5 -1
  177. package/esm5/testing/public_api.js +6 -1
  178. package/esm5/testing/src/async.js +1 -1
  179. package/esm5/testing/src/async_fallback.js +1 -1
  180. package/esm5/testing/src/async_test_completer.js +2 -8
  181. package/esm5/testing/src/before_each.js +6 -1
  182. package/esm5/testing/src/component_fixture.js +9 -75
  183. package/esm5/testing/src/fake_async.js +12 -3
  184. package/esm5/testing/src/fake_async_fallback.js +5 -3
  185. package/esm5/testing/src/lang_utils.js +1 -1
  186. package/esm5/testing/src/logger.js +1 -1
  187. package/esm5/testing/src/metadata_override.js +1 -1
  188. package/esm5/testing/src/ng_zone_mock.js +1 -1
  189. package/esm5/testing/src/private_export_testing.js +1 -1
  190. package/esm5/testing/src/render3.js +1 -5
  191. package/esm5/testing/src/test_bed.js +20 -172
  192. package/esm5/testing/src/test_compiler.js +5 -43
  193. package/esm5/testing/src/testing.js +6 -1
  194. package/esm5/testing/src/testing_internal.js +3 -9
  195. package/fesm2015/core.js +248 -177
  196. package/fesm2015/core.js.map +1 -1
  197. package/fesm2015/testing.js +9 -13
  198. package/fesm2015/testing.js.map +1 -1
  199. package/fesm5/core.js +591 -2007
  200. package/fesm5/core.js.map +1 -1
  201. package/fesm5/testing.js +61 -237
  202. package/fesm5/testing.js.map +1 -1
  203. package/package.json +1 -1
  204. package/src/application_ref.d.ts +7 -8
  205. package/src/change_detection/change_detector_ref.d.ts +6 -4
  206. package/src/change_detection/differs/iterable_differs.d.ts +3 -2
  207. package/src/change_detection/differs/keyvalue_differs.d.ts +3 -2
  208. package/src/change_detection/pipe_transform.d.ts +2 -5
  209. package/src/di/forward_ref.d.ts +7 -5
  210. package/src/di/injectable.d.ts +4 -14
  211. package/src/di/injection_token.d.ts +5 -7
  212. package/src/di/injector.d.ts +7 -10
  213. package/src/di/metadata.d.ts +13 -86
  214. package/src/di/provider.d.ts +55 -150
  215. package/src/di/reflective_errors.d.ts +13 -6
  216. package/src/di/reflective_injector.d.ts +21 -23
  217. package/src/di/reflective_provider.d.ts +7 -8
  218. package/src/error_handler.d.ts +1 -4
  219. package/src/event_emitter.d.ts +3 -0
  220. package/src/i18n/tokens.d.ts +8 -4
  221. package/src/linker/query_list.d.ts +2 -2
  222. package/src/linker/view_ref.d.ts +9 -6
  223. package/src/metadata/di.d.ts +41 -59
  224. package/src/metadata/directives.d.ts +410 -460
  225. package/src/metadata/lifecycle_hooks.d.ts +8 -8
  226. package/src/metadata/ng_module.d.ts +49 -38
  227. package/src/render3/view_ref.d.ts +6 -2
  228. package/src/zone/ng_zone.d.ts +1 -0
  229. package/testing/src/fake_async.d.ts +4 -2
  230. package/testing/src/fake_async_fallback.d.ts +4 -2
  231. package/testing/src/metadata_override.d.ts +3 -3
  232. package/testing.d.ts +0 -5
  233. package/testing.metadata.json +1 -1
@@ -9,32 +9,23 @@ import { ClassSansProvider, ConstructorSansProvider, ExistingSansProvider, Facto
9
9
  export declare type InjectableProvider = ValueSansProvider | ExistingSansProvider | StaticClassSansProvider | ConstructorSansProvider | FactorySansProvider | ClassSansProvider;
10
10
  /**
11
11
  * Type of the Injectable decorator / constructor function.
12
- *
13
- *
14
12
  */
15
13
  export interface InjectableDecorator {
16
14
  /**
17
- * @usageNotes
18
- * ```
19
- * @Injectable()
20
- * class Car {}
21
- * ```
22
- *
23
- * @description
24
- * A marker metadata that marks a class as available to {@link Injector} for creation.
15
+ * A marker metadata that marks a class as available to `Injector` for creation.
25
16
  *
26
- * For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
17
+ * For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
27
18
  *
19
+ * @usageNotes
28
20
  * ### Example
29
21
  *
30
22
  * {@example core/di/ts/metadata_spec.ts region='Injectable'}
31
23
  *
32
- * {@link Injector} will throw an error when trying to instantiate a class that
24
+ * `Injector` will throw an error when trying to instantiate a class that
33
25
  * does not have `@Injectable` marker, as shown in the example below.
34
26
  *
35
27
  * {@example core/di/ts/metadata_spec.ts region='InjectableThrows'}
36
28
  *
37
- *
38
29
  */
39
30
  (): any;
40
31
  (options?: {
@@ -58,7 +49,6 @@ export declare function convertInjectableProviderToFactory(type: Type<any>, prov
58
49
  /**
59
50
  * Injectable decorator and metadata.
60
51
  *
61
- *
62
52
  * @Annotation
63
53
  */
64
54
  export declare const Injectable: InjectableDecorator;
@@ -32,16 +32,14 @@ import { Type } from '../type';
32
32
  * overrides the above behavior and marks the token as belonging to a particular `@NgModule`. As
33
33
  * mentioned above, `'root'` is the default value for `providedIn`.
34
34
  *
35
- * ### Example
36
- *
37
- * #### Tree-shakeable InjectionToken
38
- *
39
- * {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
40
- *
41
- * #### Plain InjectionToken
35
+ * @usageNotes
36
+ * ### Basic Example
42
37
  *
43
38
  * {@example core/di/ts/injector_spec.ts region='InjectionToken'}
44
39
  *
40
+ * ### Tree-shakeable Example
41
+ *
42
+ * {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
45
43
  *
46
44
  */
47
45
  export declare class InjectionToken<T> {
@@ -23,23 +23,17 @@ export declare class NullInjector implements Injector {
23
23
  get(token: any, notFoundValue?: any): any;
24
24
  }
25
25
  /**
26
- * @usageNotes
27
- * ```
28
- * const injector: Injector = ...;
29
- * injector.get(...);
30
- * ```
31
- *
32
- * @description
33
- *
34
26
  * Concrete injectors implement this interface.
35
27
  *
36
- * For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
28
+ * For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
37
29
  *
30
+ * @usageNotes
38
31
  * ### Example
39
32
  *
40
33
  * {@example core/di/ts/injector_spec.ts region='Injector'}
41
34
  *
42
35
  * `Injector` returns itself when given `Injector` as a token:
36
+ *
43
37
  * {@example core/di/ts/injector_spec.ts region='injectInjector'}
44
38
  *
45
39
  *
@@ -103,7 +97,10 @@ export declare function setCurrentInjector(injector: Injector | null | undefined
103
97
  * Injects a token from the currently active injector.
104
98
  *
105
99
  * This function must be used in the context of a factory function such as one defined for an
106
- * `InjectionToken`, and will throw an error if not called from such a context. For example:
100
+ * `InjectionToken`, and will throw an error if not called from such a context.
101
+ *
102
+ * @usageNotes
103
+ * ### Example
107
104
  *
108
105
  * {@example core/di/ts/injector_spec.ts region='ShakeableInjectionToken'}
109
106
  *
@@ -1,43 +1,29 @@
1
1
  /**
2
2
  * Type of the Inject decorator / constructor function.
3
- *
4
- *
5
3
  */
6
4
  export interface InjectDecorator {
7
5
  /**
8
- * @usageNotes
9
- * ```
10
- * @Injectable()
11
- * class Car {
12
- * constructor(@Inject("MyEngine") public engine:Engine) {}
13
- * }
14
- * ```
15
- *
16
- * @description
17
6
  * A parameter decorator that specifies a dependency.
18
7
  *
19
- * For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
8
+ * For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
20
9
  *
10
+ * @usageNotes
21
11
  * ### Example
22
12
  *
23
13
  * {@example core/di/ts/metadata_spec.ts region='Inject'}
24
14
  *
25
- * When `@Inject()` is not present, {@link Injector} will use the type annotation of the
15
+ * When `@Inject()` is not present, `Injector` will use the type annotation of the
26
16
  * parameter.
27
17
  *
28
18
  * ### Example
29
19
  *
30
20
  * {@example core/di/ts/metadata_spec.ts region='InjectWithoutDecorator'}
31
- *
32
- *
33
21
  */
34
22
  (token: any): any;
35
23
  new (token: any): Inject;
36
24
  }
37
25
  /**
38
26
  * Type of the Inject metadata.
39
- *
40
- *
41
27
  */
42
28
  export interface Inject {
43
29
  token: any;
@@ -45,122 +31,79 @@ export interface Inject {
45
31
  /**
46
32
  * Inject decorator and metadata.
47
33
  *
48
- *
49
34
  * @Annotation
50
35
  */
51
36
  export declare const Inject: InjectDecorator;
52
37
  /**
53
38
  * Type of the Optional decorator / constructor function.
54
- *
55
- *
56
39
  */
57
40
  export interface OptionalDecorator {
58
41
  /**
59
- * @usageNotes
60
- * ```
61
- * @Injectable()
62
- * class Car {
63
- * constructor(@Optional() public engine:Engine) {}
64
- * }
65
- * ```
66
- *
67
- * @description
68
42
  * A parameter metadata that marks a dependency as optional.
69
- * {@link Injector} provides `null` if the dependency is not found.
43
+ * `Injector` provides `null` if the dependency is not found.
70
44
  *
71
- * For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
45
+ * For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
72
46
  *
47
+ * @usageNotes
73
48
  * ### Example
74
49
  *
75
50
  * {@example core/di/ts/metadata_spec.ts region='Optional'}
76
- *
77
- *
78
51
  */
79
52
  (): any;
80
53
  new (): Optional;
81
54
  }
82
55
  /**
83
56
  * Type of the Optional metadata.
84
- *
85
- *
86
57
  */
87
58
  export interface Optional {
88
59
  }
89
60
  /**
90
61
  * Optional decorator and metadata.
91
62
  *
92
- *
93
63
  * @Annotation
94
64
  */
95
65
  export declare const Optional: OptionalDecorator;
96
66
  /**
97
67
  * Type of the Self decorator / constructor function.
98
- *
99
- *
100
68
  */
101
69
  export interface SelfDecorator {
102
70
  /**
103
- * @usageNotes
104
- * ```
105
- * @Injectable()
106
- * class Car {
107
- * constructor(@Self() public engine:Engine) {}
108
- * }
109
- * ```
110
- *
111
- * @description
112
- * Specifies that an {@link Injector} should retrieve a dependency only from itself.
71
+ * Specifies that an `Injector` should retrieve a dependency only from itself.
113
72
  *
114
- * For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
73
+ * For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
115
74
  *
75
+ * @usageNotes
116
76
  * ### Example
117
77
  *
118
78
  * {@example core/di/ts/metadata_spec.ts region='Self'}
119
- *
120
- *
121
79
  */
122
80
  (): any;
123
81
  new (): Self;
124
82
  }
125
83
  /**
126
84
  * Type of the Self metadata.
127
- *
128
- *
129
85
  */
130
86
  export interface Self {
131
87
  }
132
88
  /**
133
89
  * Self decorator and metadata.
134
90
  *
135
- *
136
91
  * @Annotation
137
92
  */
138
93
  export declare const Self: SelfDecorator;
139
94
  /**
140
95
  * Type of the SkipSelf decorator / constructor function.
141
- *
142
- *
143
96
  */
144
97
  export interface SkipSelfDecorator {
145
98
  /**
146
- * @usageNotes
147
- * ```
148
- * @Injectable()
149
- * class Car {
150
- * constructor(@SkipSelf() public engine:Engine) {}
151
- * }
152
- * ```
153
- *
154
- * @description
155
99
  * Specifies that the dependency resolution should start from the parent injector.
156
100
  *
157
- * For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
101
+ * For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
158
102
  *
103
+ * @usageNotes
159
104
  * ### Example
160
105
  *
161
106
  * {@example core/di/ts/metadata_spec.ts region='SkipSelf'}
162
- *
163
- *
164
107
  */
165
108
  (): any;
166
109
  new (): SkipSelf;
@@ -175,51 +118,35 @@ export interface SkipSelf {
175
118
  /**
176
119
  * SkipSelf decorator and metadata.
177
120
  *
178
- *
179
121
  * @Annotation
180
122
  */
181
123
  export declare const SkipSelf: SkipSelfDecorator;
182
124
  /**
183
125
  * Type of the Host decorator / constructor function.
184
- *
185
- *
186
126
  */
187
127
  export interface HostDecorator {
188
128
  /**
189
- * @usageNotes
190
- * ```
191
- * @Injectable()
192
- * class Car {
193
- * constructor(@Host() public engine:Engine) {}
194
- * }
195
- * ```
196
- *
197
- * @description
198
129
  * Specifies that an injector should retrieve a dependency from any injector until
199
130
  * reaching the host element of the current component.
200
131
  *
201
- * For more details, see the {@linkDocs guide/dependency-injection "Dependency Injection Guide"}.
132
+ * For more details, see the ["Dependency Injection Guide"](guide/dependency-injection).
202
133
  *
134
+ * @usageNotes
203
135
  * ### Example
204
136
  *
205
137
  * {@example core/di/ts/metadata_spec.ts region='Host'}
206
- *
207
- *
208
138
  */
209
139
  (): any;
210
140
  new (): Host;
211
141
  }
212
142
  /**
213
143
  * Type of the Host metadata.
214
- *
215
- *
216
144
  */
217
145
  export interface Host {
218
146
  }
219
147
  /**
220
148
  * Host decorator and metadata.
221
149
  *
222
- *
223
150
  * @Annotation
224
151
  */
225
152
  export declare const Host: HostDecorator;