@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,6 +9,7 @@ import { Subject } from 'rxjs';
9
9
  /**
10
10
  * Use by directives and components to emit custom Events.
11
11
  *
12
+ * @usageNotes
12
13
  * ### Examples
13
14
  *
14
15
  * In the following example, `Zippy` alternatively emits `open` and `close` events when its
@@ -47,6 +48,8 @@ import { Subject } from 'rxjs';
47
48
  * <zippy (open)="onOpen($event)" (close)="onClose($event)"></zippy>
48
49
  * ```
49
50
  *
51
+ * ### Notes
52
+ *
50
53
  * Uses Rx.Observable but provides an adapter to make it work as specified here:
51
54
  * https://github.com/jhusain/observable-spec
52
55
  *
@@ -11,8 +11,9 @@ import { InjectionToken } from '../di/injection_token';
11
11
  * It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe,
12
12
  * DecimalPipe and PercentPipe) and by ICU expressions.
13
13
  *
14
- * See the {@linkDocs guide/i18n#setting-up-locale i18n guide} for more information.
14
+ * See the [i18n guide](guide/i18n#setting-up-locale) for more information.
15
15
  *
16
+ * @usageNotes
16
17
  * ### Example
17
18
  *
18
19
  * ```typescript
@@ -32,8 +33,9 @@ export declare const LOCALE_ID: InjectionToken<string>;
32
33
  * Use this token at bootstrap to provide the content of your translation file (`xtb`,
33
34
  * `xlf` or `xlf2`) when you want to translate your application in another language.
34
35
  *
35
- * See the {@linkDocs guide/i18n#merge i18n guide} for more information.
36
+ * See the [i18n guide](guide/i18n#merge) for more information.
36
37
  *
38
+ * @usageNotes
37
39
  * ### Example
38
40
  *
39
41
  * ```typescript
@@ -56,8 +58,9 @@ export declare const TRANSLATIONS: InjectionToken<string>;
56
58
  * Provide this token at bootstrap to set the format of your {@link TRANSLATIONS}: `xtb`,
57
59
  * `xlf` or `xlf2`.
58
60
  *
59
- * See the {@linkDocs guide/i18n#merge i18n guide} for more information.
61
+ * See the [i18n guide](guide/i18n#merge) for more information.
60
62
  *
63
+ * @usageNotes
61
64
  * ### Example
62
65
  *
63
66
  * ```typescript
@@ -80,8 +83,9 @@ export declare const TRANSLATIONS_FORMAT: InjectionToken<string>;
80
83
  * - Warning (default): show a warning in the console and/or shell.
81
84
  * - Ignore: do nothing.
82
85
  *
83
- * See the {@linkDocs guide/i18n#missing-translation i18n guide} for more information.
86
+ * See the [i18n guide](guide/i18n#missing-translation) for more information.
84
87
  *
88
+ * @usageNotes
85
89
  * ### Example
86
90
  * ```typescript
87
91
  * import { MissingTranslationStrategy } from '@angular/core';
@@ -21,14 +21,14 @@ import { Observable } from 'rxjs';
21
21
  *
22
22
  * NOTE: In the future this class will implement an `Observable` interface.
23
23
  *
24
- * ### Example ([live demo](http://plnkr.co/edit/RX8sJnQYl9FWuSCWme5z?p=preview))
24
+ * @usageNotes
25
+ * ### Example
25
26
  * ```typescript
26
27
  * @Component({...})
27
28
  * class Container {
28
29
  * @ViewChildren(Item) items:QueryList<Item>;
29
30
  * }
30
31
  * ```
31
- *
32
32
  */
33
33
  export declare class QueryList<T> {
34
34
  readonly dirty: boolean;
@@ -24,9 +24,10 @@ export declare abstract class ViewRef extends ChangeDetectorRef {
24
24
  *
25
25
  * Properties of elements in a View can change, but the structure (number and order) of elements in
26
26
  * a View cannot. Changing the structure of Elements can only be done by inserting, moving or
27
- * removing nested Views via a {@link ViewContainerRef}. Each View can contain many View Containers.
27
+ * removing nested Views via a `ViewContainerRef`. Each View can contain many View Containers.
28
28
  * <!-- /TODO -->
29
29
  *
30
+ * @usageNotes
30
31
  * ### Example
31
32
  *
32
33
  * Given this template...
@@ -38,9 +39,10 @@ export declare abstract class ViewRef extends ChangeDetectorRef {
38
39
  * </ul>
39
40
  * ```
40
41
  *
41
- * We have two {@link TemplateRef}s:
42
+ * We have two `TemplateRef`s:
43
+ *
44
+ * Outer `TemplateRef`:
42
45
  *
43
- * Outer {@link TemplateRef}:
44
46
  * ```
45
47
  * Count: {{items.length}}
46
48
  * <ul>
@@ -48,14 +50,15 @@ export declare abstract class ViewRef extends ChangeDetectorRef {
48
50
  * </ul>
49
51
  * ```
50
52
  *
51
- * Inner {@link TemplateRef}:
53
+ * Inner `TemplateRef`:
54
+ *
52
55
  * ```
53
56
  * <li>{{item}}</li>
54
57
  * ```
55
58
  *
56
- * Notice that the original template is broken down into two separate {@link TemplateRef}s.
59
+ * Notice that the original template is broken down into two separate `TemplateRef`s.
57
60
  *
58
- * The outer/inner {@link TemplateRef}s are then assembled into views like so:
61
+ * The outer/inner `TemplateRef`s are then assembled into views like so:
59
62
  *
60
63
  * ```
61
64
  * <!-- ViewRef: outer-0 -->
@@ -13,6 +13,7 @@ import { Type } from '../type';
13
13
  * All components that are referenced in the `useValue` value (either directly
14
14
  * or in a nested array or map) will be added to the `entryComponents` property.
15
15
  *
16
+ * @usageNotes
16
17
  * ### Example
17
18
  * The following example shows how the router can populate the `entryComponents`
18
19
  * field of an NgModule based on the router configuration which refers
@@ -53,6 +54,7 @@ export interface AttributeDecorator {
53
54
  *
54
55
  * The directive can inject constant string literals of host element attributes.
55
56
  *
57
+ * @usageNotes
56
58
  * ### Example
57
59
  *
58
60
  * Suppose we have an `<input>` element and want to know its `type`.
@@ -98,14 +100,11 @@ export interface Attribute {
98
100
  /**
99
101
  * Attribute decorator and metadata.
100
102
  *
101
- *
102
103
  * @Annotation
103
104
  */
104
105
  export declare const Attribute: AttributeDecorator;
105
106
  /**
106
107
  * Type of the Query metadata.
107
- *
108
- *
109
108
  */
110
109
  export interface Query {
111
110
  descendants: boolean;
@@ -117,34 +116,25 @@ export interface Query {
117
116
  /**
118
117
  * Base class for query metadata.
119
118
  *
120
- * See {@link ContentChildren}, {@link ContentChild}, {@link ViewChildren}, {@link ViewChild} for
121
- * more information.
122
- *
123
- *
119
+ * @see `ContentChildren`.
120
+ * @see `ContentChild`.
121
+ * @see `ViewChildren`.
122
+ * @see `ViewChild`.
124
123
  */
125
124
  export declare abstract class Query {
126
125
  }
127
126
  /**
128
127
  * Type of the ContentChildren decorator / constructor function.
129
128
  *
130
- * See {@link ContentChildren}.
131
- *
132
- *
129
+ * @see `ContentChildren`.
133
130
  */
134
131
  export interface ContentChildrenDecorator {
135
132
  /**
136
- *
137
- * @usageNotes
138
- *
139
- * {@example core/di/ts/contentChildren/content_children_howto.ts region='HowTo'}
140
- *
141
- * @description
142
133
  * Configures a content query.
143
134
  *
144
- * You can use ContentChildren to get the {@link QueryList} of elements or directives from the
135
+ * You can use ContentChildren to get the `QueryList` of elements or directives from the
145
136
  * content DOM. Any time a child element is added, removed, or moved, the query list will be
146
- * updated,
147
- * and the changes observable of the query list will emit a new value.
137
+ * updated, and the changes observable of the query list will emit a new value.
148
138
  *
149
139
  * Content queries are set before the `ngAfterContentInit` callback is called.
150
140
  *
@@ -154,12 +144,19 @@ export interface ContentChildrenDecorator {
154
144
  * * **descendants** - include only direct children or all descendants.
155
145
  * * **read** - read a different token from the queried elements.
156
146
  *
157
- * Let's look at an example:
147
+ * @usageNotes
148
+ * ### Basic Example
158
149
  *
159
- * {@example core/di/ts/contentChildren/content_children_example.ts region='Component'}
150
+ * Here is a simple demonstration of how the `ContentChildren` decorator can be used.
160
151
  *
161
- * **npm package**: `@angular/core`
152
+ * {@example core/di/ts/contentChildren/content_children_howto.ts region='HowTo'}
153
+ *
154
+ * ### Tab-pane Example
162
155
  *
156
+ * Here is a slightly more realistic example that shows how `ContentChildren` decorators
157
+ * can be used to implement a tab pane component.
158
+ *
159
+ * {@example core/di/ts/contentChildren/content_children_example.ts region='Component'}
163
160
  *
164
161
  * @Annotation
165
162
  */
@@ -194,12 +191,6 @@ export declare const ContentChildren: ContentChildrenDecorator;
194
191
  */
195
192
  export interface ContentChildDecorator {
196
193
  /**
197
- *
198
- * @usageNotes
199
- *
200
- * {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
201
- *
202
- * @description
203
194
  * Configures a content query.
204
195
  *
205
196
  * You can use ContentChild to get the first element or the directive matching the selector from
@@ -213,12 +204,14 @@ export interface ContentChildDecorator {
213
204
  * * **selector** - the directive type or the name used for querying.
214
205
  * * **read** - read a different token from the queried element.
215
206
  *
216
- * Let's look at an example:
207
+ * @usageNotes
208
+ * ### Example
217
209
  *
218
- * {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
210
+ * {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
219
211
  *
220
- * **npm package**: `@angular/core`
212
+ * ### Example
221
213
  *
214
+ * {@example core/di/ts/contentChild/content_child_example.ts region='Component'}
222
215
  *
223
216
  * @Annotation
224
217
  */
@@ -232,7 +225,7 @@ export interface ContentChildDecorator {
232
225
  /**
233
226
  * Type of the ContentChild metadata.
234
227
  *
235
- * See {@link ContentChild}.
228
+ * @see `ContentChild`.
236
229
  *
237
230
  *
238
231
  */
@@ -247,21 +240,15 @@ export declare const ContentChild: ContentChildDecorator;
247
240
  /**
248
241
  * Type of the ViewChildren decorator / constructor function.
249
242
  *
250
- * See {@link ViewChildren}.
243
+ * @see `ViewChildren`.
251
244
  *
252
245
  *
253
246
  */
254
247
  export interface ViewChildrenDecorator {
255
248
  /**
256
- *
257
- * @usageNotes
258
- *
259
- * {@example core/di/ts/viewChildren/view_children_howto.ts region='HowTo'}
260
- *
261
- * @description
262
249
  * Configures a view query.
263
250
  *
264
- * You can use ViewChildren to get the {@link QueryList} of elements or directives from the
251
+ * You can use ViewChildren to get the `QueryList` of elements or directives from the
265
252
  * view DOM. Any time a child element is added, removed, or moved, the query list will be updated,
266
253
  * and the changes observable of the query list will emit a new value.
267
254
  *
@@ -272,12 +259,15 @@ export interface ViewChildrenDecorator {
272
259
  * * **selector** - the directive type or the name used for querying.
273
260
  * * **read** - read a different token from the queried elements.
274
261
  *
275
- * Let's look at an example:
262
+ * @usageNotes
276
263
  *
277
- * {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
264
+ * ### Example
278
265
  *
279
- * **npm package**: `@angular/core`
266
+ * {@example core/di/ts/viewChildren/view_children_howto.ts region='HowTo'}
280
267
  *
268
+ * ### Example
269
+ *
270
+ * {@example core/di/ts/viewChildren/view_children_example.ts region='Component'}
281
271
  *
282
272
  * @Annotation
283
273
  */
@@ -290,31 +280,21 @@ export interface ViewChildrenDecorator {
290
280
  }
291
281
  /**
292
282
  * Type of the ViewChildren metadata.
293
- *
294
- *
295
283
  */
296
284
  export declare type ViewChildren = Query;
297
285
  /**
298
286
  * ViewChildren decorator and metadata.
299
287
  *
300
- *
301
288
  * @Annotation
302
289
  */
303
290
  export declare const ViewChildren: ViewChildrenDecorator;
304
291
  /**
305
292
  * Type of the ViewChild decorator / constructor function.
306
293
  *
307
- * See {@link ViewChild}
308
- *
309
- *
294
+ * @see `ViewChild`.
310
295
  */
311
296
  export interface ViewChildDecorator {
312
297
  /**
313
- *
314
- * @usageNotes
315
- *
316
- * {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
317
- *
318
298
  * @description
319
299
  * Configures a view query.
320
300
  *
@@ -329,10 +309,15 @@ export interface ViewChildDecorator {
329
309
  * * **selector** - the directive type or the name used for querying.
330
310
  * * **read** - read a different token from the queried elements.
331
311
  *
332
- * {@example core/di/ts/viewChild/view_child_example.ts region='Component'}
312
+ * @usageNotes
313
+ *
314
+ * ### Example
315
+ *
316
+ * {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
333
317
  *
334
- * **npm package**: `@angular/core`
318
+ * ### Example
335
319
  *
320
+ * {@example core/di/ts/viewChild/view_child_example.ts region='Component'}
336
321
  *
337
322
  * @Annotation
338
323
  */
@@ -345,14 +330,11 @@ export interface ViewChildDecorator {
345
330
  }
346
331
  /**
347
332
  * Type of the ViewChild metadata.
348
- *
349
- *
350
333
  */
351
334
  export declare type ViewChild = Query;
352
335
  /**
353
336
  * ViewChild decorator and metadata.
354
337
  *
355
- *
356
338
  * @Annotation
357
339
  */
358
340
  export declare const ViewChild: ViewChildDecorator;