@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
@@ -25,7 +25,7 @@ export interface SimpleChanges {
25
25
  * and content children are checked if at least one of them has changed.
26
26
  * The `changes` parameter contains the changed properties.
27
27
  *
28
- * See {@linkDocs guide/lifecycle-hooks#onchanges "Lifecycle Hooks Guide"}.
28
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks#onchanges).
29
29
  *
30
30
  *
31
31
  */
@@ -44,7 +44,7 @@ export interface OnChanges {
44
44
  * first time, and before any of its children have been checked. It is invoked only once when the
45
45
  * directive is instantiated.
46
46
  *
47
- * See {@linkDocs guide/lifecycle-hooks "Lifecycle Hooks Guide"}.
47
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks).
48
48
  *
49
49
  *
50
50
  */
@@ -69,7 +69,7 @@ export interface OnInit {
69
69
  * See {@link KeyValueDiffers} and {@link IterableDiffers} for implementing custom dirty checking
70
70
  * for collections.
71
71
  *
72
- * See {@linkDocs guide/lifecycle-hooks#docheck "Lifecycle Hooks Guide"}.
72
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks#docheck).
73
73
  *
74
74
  *
75
75
  */
@@ -86,7 +86,7 @@ export interface DoCheck {
86
86
  * `ngOnDestroy` callback is typically used for any custom cleanup that needs to occur when the
87
87
  * instance is destroyed.
88
88
  *
89
- * See {@linkDocs guide/lifecycle-hooks "Lifecycle Hooks Guide"}.
89
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks).
90
90
  *
91
91
  *
92
92
  */
@@ -102,7 +102,7 @@ export interface OnDestroy {
102
102
  * Lifecycle hook that is called after a directive's content has been fully
103
103
  * initialized.
104
104
  *
105
- * See {@linkDocs guide/lifecycle-hooks#aftercontent "Lifecycle Hooks Guide"}.
105
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks#aftercontent).
106
106
  *
107
107
  *
108
108
  */
@@ -116,7 +116,7 @@ export interface AfterContentInit {
116
116
  * @description
117
117
  * Lifecycle hook that is called after every check of a directive's content.
118
118
  *
119
- * See {@linkDocs guide/lifecycle-hooks#aftercontent "Lifecycle Hooks Guide"}.
119
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks#aftercontent).
120
120
  *
121
121
  *
122
122
  */
@@ -131,7 +131,7 @@ export interface AfterContentChecked {
131
131
  * Lifecycle hook that is called after a component's view has been fully
132
132
  * initialized.
133
133
  *
134
- * See {@linkDocs guide/lifecycle-hooks#afterview "Lifecycle Hooks Guide"}.
134
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks#afterview).
135
135
  *
136
136
  *
137
137
  */
@@ -145,7 +145,7 @@ export interface AfterViewInit {
145
145
  * @description
146
146
  * Lifecycle hook that is called after every check of a component's view.
147
147
  *
148
- * See {@linkDocs guide/lifecycle-hooks#afterview "Lifecycle Hooks Guide"}.
148
+ * See ["Lifecycle Hooks Guide"](guide/lifecycle-hooks#afterview).
149
149
  *
150
150
  *
151
151
  */
@@ -2,7 +2,7 @@ import { Provider } from '../di/provider';
2
2
  import { Type } from '../type';
3
3
  import { TypeDecorator } from '../util/decorators';
4
4
  /**
5
- * A wrapper around a module that also includes the providers.
5
+ * A wrapper around an NgModule that associates it with the providers.
6
6
  *
7
7
  *
8
8
  */
@@ -11,7 +11,11 @@ export interface ModuleWithProviders {
11
11
  providers?: Provider[];
12
12
  }
13
13
  /**
14
- * Interface for schema definitions in @NgModules.
14
+ * A schema definition associated with an NgModule.
15
+ *
16
+ * @see `@NgModule`, `CUSTOM_ELEMENTS_SCHEMA`, `NO_ERRORS_SCHEMA`
17
+ *
18
+ * @param name The name of a defined schema.
15
19
  *
16
20
  * @experimental
17
21
  */
@@ -19,16 +23,16 @@ export interface SchemaMetadata {
19
23
  name: string;
20
24
  }
21
25
  /**
22
- * Defines a schema that will allow:
23
- * - any non-Angular elements with a `-` in their name,
24
- * - any properties on elements with a `-` in their name which is the common rule for custom
25
- * elements.
26
+ * Defines a schema that allows an NgModule to contain the following:
27
+ * - Non-Angular elements named with dash case (`-`).
28
+ * - Element properties named with dash case (`-`).
29
+ * Dash case is the naming convention for custom elements.
26
30
  *
27
31
  *
28
32
  */
29
33
  export declare const CUSTOM_ELEMENTS_SCHEMA: SchemaMetadata;
30
34
  /**
31
- * Defines a schema that will allow any property on any element.
35
+ * Defines a schema that allows any property on any element.
32
36
  *
33
37
  * @experimental
34
38
  */
@@ -40,7 +44,7 @@ export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
40
44
  */
41
45
  export interface NgModuleDecorator {
42
46
  /**
43
- * Defines an NgModule.
47
+ * Marks a class as an NgModule and supplies configuration metadata.
44
48
  */
45
49
  (obj?: NgModule): TypeDecorator;
46
50
  new (obj?: NgModule): NgModule;
@@ -52,12 +56,13 @@ export interface NgModuleDecorator {
52
56
  */
53
57
  export interface NgModule {
54
58
  /**
55
- * Defines the set of injectable objects that are available in the injector
59
+ * The set of injectable objects that are available in the injector
56
60
  * of this module.
57
61
  *
58
- * ## Simple Example
62
+ * @usageNotes
59
63
  *
60
- * Here is an example of a class that can be injected:
64
+ * The following example defines a class that is injected in
65
+ * the HelloWorld NgModule:
61
66
  *
62
67
  * ```
63
68
  * class Greeter {
@@ -82,9 +87,12 @@ export interface NgModule {
82
87
  */
83
88
  providers?: Provider[];
84
89
  /**
85
- * Specifies a list of directives/pipes that belong to this module.
90
+ * The set of directives and pipes that belong to this module.
91
+ *
92
+ * @usageNotes
86
93
  *
87
- * ### Example
94
+ * The following example allows the CommonModule to use the `NgFor`
95
+ * directive.
88
96
  *
89
97
  * ```javascript
90
98
  * @NgModule({
@@ -96,11 +104,13 @@ export interface NgModule {
96
104
  */
97
105
  declarations?: Array<Type<any> | any[]>;
98
106
  /**
99
- * Specifies a list of modules whose exported directives/pipes
100
- * should be available to templates in this module.
101
- * This can also contain {@link ModuleWithProviders}.
107
+ * The set of NgModules, with or without providers,
108
+ * whose exported directives/pipes
109
+ * are available to templates in this module.
102
110
  *
103
- * ### Example
111
+ * @usageNotes
112
+ *
113
+ * The following example allows MainModule to use CommonModule:
104
114
  *
105
115
  * ```javascript
106
116
  * @NgModule({
@@ -109,14 +119,17 @@ export interface NgModule {
109
119
  * class MainModule {
110
120
  * }
111
121
  * ```
122
+ * @see {@link ModuleWithProviders}
112
123
  */
113
124
  imports?: Array<Type<any> | ModuleWithProviders | any[]>;
114
125
  /**
115
- * Specifies a list of directives/pipes/modules that can be used within the template
116
- * of any component that is part of an Angular module
117
- * that imports this Angular module.
126
+ * The set of directives, pipe, and NgModules that can be used
127
+ * within the template of any component that is part of an
128
+ * NgModule that imports this NgModule.
129
+ *
130
+ * @usageNotes
118
131
  *
119
- * ### Example
132
+ * The following example exports the `NgFor` directive from CommonModule.
120
133
  *
121
134
  * ```javascript
122
135
  * @NgModule({
@@ -128,40 +141,38 @@ export interface NgModule {
128
141
  */
129
142
  exports?: Array<Type<any> | any[]>;
130
143
  /**
131
- * Specifies a list of components that should be compiled when this module is defined.
132
- * For each component listed here, Angular will create a {@link ComponentFactory}
133
- * and store it in the {@link ComponentFactoryResolver}.
144
+ * The set of components to compile when this NgModule is defined.
145
+ * For each component listed here, Angular creates a `ComponentFactory`
146
+ * and stores it in the `ComponentFactoryResolver`.
134
147
  */
135
148
  entryComponents?: Array<Type<any> | any[]>;
136
149
  /**
137
- * Defines the components that should be bootstrapped when
150
+ * The set of components that are bootstrapped when
138
151
  * this module is bootstrapped. The components listed here
139
- * will automatically be added to `entryComponents`.
152
+ * are automatically added to `entryComponents`.
140
153
  */
141
154
  bootstrap?: Array<Type<any> | any[]>;
142
155
  /**
143
- * Elements and properties that are not Angular components nor directives have to be declared in
144
- * the schema.
156
+ * The set of schemas that declare elements to be allowed in the NgModule.
157
+ * Elements and properties that are neither Angular components nor directives
158
+ * must be declared in a schema.
145
159
  *
146
- * Available schemas:
147
- * - `NO_ERRORS_SCHEMA`: any elements and properties are allowed,
148
- * - `CUSTOM_ELEMENTS_SCHEMA`: any custom elements (tag name has "-") with any properties are
149
- * allowed.
160
+ * Allowed value are `NO_ERRORS_SCHEMA` and `CUSTOM_ELEMENTS_SCHEMA`.
150
161
  *
151
- * @security When using one of `NO_ERRORS_SCHEMA` or `CUSTOM_ELEMENTS_SCHEMA` we're trusting that
152
- * allowed elements (and its properties) securely escape inputs.
162
+ * @security When using one of `NO_ERRORS_SCHEMA` or `CUSTOM_ELEMENTS_SCHEMA`
163
+ * you must ensure that allowed elements and properties securely escape inputs.
153
164
  */
154
165
  schemas?: Array<SchemaMetadata | any[]>;
155
166
  /**
156
- * An opaque ID for this module, e.g. a name or a path. Used to identify modules in
157
- * `getModuleFactory`. If left `undefined`, the `NgModule` will not be registered with
167
+ * A name or path that uniquely identifies this NgModule in `getModuleFactory`.
168
+ * If left `undefined`, the NgModule is not registered with
158
169
  * `getModuleFactory`.
159
170
  */
160
171
  id?: string;
161
172
  }
162
173
  /**
163
- * NgModule decorator and metadata.
164
- *
174
+ * Decorator that marks the following class as an NgModule, and supplies
175
+ * configuration metadata for it.
165
176
  *
166
177
  * @Annotation
167
178
  */
@@ -29,7 +29,8 @@ export declare class ViewRef<T> implements viewEngine_EmbeddedViewRef<T> {
29
29
  *
30
30
  * <!-- TODO: Add a link to a chapter on OnPush components -->
31
31
  *
32
- * ### Example ([live demo](https://stackblitz.com/edit/angular-kx7rrw))
32
+ * @usageNotes
33
+ * ### Example
33
34
  *
34
35
  * ```typescript
35
36
  * @Component({
@@ -62,6 +63,7 @@ export declare class ViewRef<T> implements viewEngine_EmbeddedViewRef<T> {
62
63
  * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
63
64
  * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
64
65
  *
66
+ * @usageNotes
65
67
  * ### Example
66
68
  *
67
69
  * The following example defines a component with a large list of readonly data.
@@ -112,7 +114,8 @@ export declare class ViewRef<T> implements viewEngine_EmbeddedViewRef<T> {
112
114
  *
113
115
  * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
114
116
  *
115
- * ### Example ([live demo](https://stackblitz.com/edit/angular-ymgsxw))
117
+ * @usageNotes
118
+ * ### Example
116
119
  *
117
120
  * The following example creates a component displaying `live` data. The component will detach
118
121
  * its change detector from the main change detector tree when the component's live property
@@ -169,6 +172,7 @@ export declare class ViewRef<T> implements viewEngine_EmbeddedViewRef<T> {
169
172
  * <!-- TODO: Add a link to a chapter on detach/reattach/local digest -->
170
173
  * <!-- TODO: Add a live demo once ref.detectChanges is merged into master -->
171
174
  *
175
+ * @usageNotes
172
176
  * ### Example
173
177
  *
174
178
  * The following example defines a component with a large list of readonly data.
@@ -12,6 +12,7 @@ import { EventEmitter } from '../event_emitter';
12
12
  * - link to runOutsideAngular/run (throughout this file!)
13
13
  * -->
14
14
  *
15
+ * @usageNotes
15
16
  * ### Example
16
17
  *
17
18
  * ```
@@ -14,7 +14,8 @@ export declare function resetFakeAsyncZone(): void;
14
14
  *
15
15
  * Can be used to wrap inject() calls.
16
16
  *
17
- * ## Example
17
+ * @usageNotes
18
+ * ### Example
18
19
  *
19
20
  * {@example core/testing/ts/fake_async.ts region='basic'}
20
21
  *
@@ -30,7 +31,8 @@ export declare function fakeAsync(fn: Function): (...args: any[]) => any;
30
31
  * The microtasks queue is drained at the very start of this function and after any timer callback
31
32
  * has been executed.
32
33
  *
33
- * ## Example
34
+ * @usageNotes
35
+ * ### Example
34
36
  *
35
37
  * {@example core/testing/ts/fake_async.ts region='basic'}
36
38
  *
@@ -14,7 +14,8 @@ export declare function resetFakeAsyncZoneFallback(): void;
14
14
  *
15
15
  * Can be used to wrap inject() calls.
16
16
  *
17
- * ## Example
17
+ * @usageNotes
18
+ * ### Example
18
19
  *
19
20
  * {@example core/testing/ts/fake_async.ts region='basic'}
20
21
  *
@@ -30,7 +31,8 @@ export declare function fakeAsyncFallback(fn: Function): (...args: any[]) => any
30
31
  * The microtasks queue is drained at the very start of this function and after any timer callback
31
32
  * has been executed.
32
33
  *
33
- * ## Example
34
+ * @usageNotes
35
+ * ### Example
34
36
  *
35
37
  * {@example core/testing/ts/fake_async.ts region='basic'}
36
38
  *
@@ -11,7 +11,7 @@
11
11
  * @experimental
12
12
  */
13
13
  export declare type MetadataOverride<T> = {
14
- add?: T;
15
- remove?: T;
16
- set?: T;
14
+ add?: Partial<T>;
15
+ remove?: Partial<T>;
16
+ set?: Partial<T>;
17
17
  };
package/testing.d.ts CHANGED
@@ -1,8 +1,3 @@
1
- /**
2
- * @license Angular v6.0.3
3
- * (c) 2010-2018 Google, Inc. https://angular.io/
4
- * License: MIT
5
- */
6
1
 
7
2
  export * from './testing/testing';
8
3
 
@@ -1 +1 @@
1
- {"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./testing/testing"}],"flatModuleIndexRedirect":true}
1
+ {"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./testing/testing"}],"flatModuleIndexRedirect":true,"importAs":"@angular/core/testing"}