@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.
- package/bundles/core-testing.umd.js +61 -237
- package/bundles/core-testing.umd.js.map +1 -1
- package/bundles/core-testing.umd.min.js +11 -4
- package/bundles/core-testing.umd.min.js.map +1 -1
- package/bundles/core.umd.js +591 -2007
- package/bundles/core.umd.js.map +1 -1
- package/bundles/core.umd.min.js +4 -32
- package/bundles/core.umd.min.js.map +1 -1
- package/core.metadata.json +1 -1
- package/esm2015/core.externs.js +3 -3
- package/esm2015/src/application_init.js +2 -9
- package/esm2015/src/application_module.js +1 -10
- package/esm2015/src/application_ref.js +15 -30
- package/esm2015/src/change_detection/change_detector_ref.js +7 -5
- package/esm2015/src/change_detection/differs/iterable_differs.js +4 -3
- package/esm2015/src/change_detection/differs/keyvalue_differs.js +4 -3
- package/esm2015/src/change_detection/pipe_transform.js +3 -6
- package/esm2015/src/console.js +0 -11
- package/esm2015/src/di/forward_ref.js +8 -6
- package/esm2015/src/di/injectable.js +1 -4
- package/esm2015/src/di/injection_token.js +6 -8
- package/esm2015/src/di/injector.js +5 -10
- package/esm2015/src/di/metadata.js +1 -16
- package/esm2015/src/di/provider.js +47 -138
- package/esm2015/src/di/reflective_errors.js +14 -7
- package/esm2015/src/di/reflective_injector.js +22 -24
- package/esm2015/src/di/reflective_provider.js +11 -12
- package/esm2015/src/error_handler.js +2 -5
- package/esm2015/src/event_emitter.js +6 -3
- package/esm2015/src/i18n/tokens.js +7 -4
- package/esm2015/src/linker/compiler.js +1 -12
- package/esm2015/src/linker/query_list.js +4 -4
- package/esm2015/src/linker/system_js_ng_module_factory_loader.js +3 -10
- package/esm2015/src/linker/view_ref.js +10 -7
- package/esm2015/src/metadata/di.js +10 -16
- package/esm2015/src/metadata/directives.js +111 -33
- package/esm2015/src/metadata/lifecycle_hooks.js +9 -9
- package/esm2015/src/metadata/ng_module.js +19 -11
- package/esm2015/src/render3/node_manipulation.js +2 -3
- package/esm2015/src/render3/view_ref.js +7 -3
- package/esm2015/src/testability/testability.js +2 -16
- package/esm2015/src/version.js +1 -1
- package/esm2015/src/view/ng_module.js +4 -1
- package/esm2015/src/zone/ng_zone.js +2 -1
- package/esm2015/testing/src/fake_async.js +5 -3
- package/esm2015/testing/src/fake_async_fallback.js +5 -3
- package/esm2015/testing/src/logger.js +0 -7
- package/esm2015/testing/src/metadata_override.js +1 -1
- package/esm2015/testing/src/ng_zone_mock.js +0 -7
- package/esm2015/testing/src/test_bed.js +1 -34
- package/esm2015/testing/src/test_compiler.js +1 -12
- package/esm5/index.js +5 -1
- package/esm5/public_api.js +6 -1
- package/esm5/src/application_init.js +3 -5
- package/esm5/src/application_module.js +2 -2
- package/esm5/src/application_ref.js +35 -211
- package/esm5/src/application_tokens.js +1 -1
- package/esm5/src/change_detection/change_detection.js +1 -1
- package/esm5/src/change_detection/change_detection_util.js +7 -72
- package/esm5/src/change_detection/change_detector_ref.js +1 -1
- package/esm5/src/change_detection/constants.js +1 -24
- package/esm5/src/change_detection/differs/default_iterable_differ.js +26 -209
- package/esm5/src/change_detection/differs/default_keyvalue_differ.js +7 -38
- package/esm5/src/change_detection/differs/iterable_differs.js +5 -42
- package/esm5/src/change_detection/differs/keyvalue_differs.js +6 -51
- package/esm5/src/change_detection/pipe_transform.js +1 -1
- package/esm5/src/change_detection.js +6 -1
- package/esm5/src/codegen_private_exports.js +1 -1
- package/esm5/src/console.js +2 -7
- package/esm5/src/core.js +6 -1
- package/esm5/src/core_private_export.js +1 -1
- package/esm5/src/core_render3_private_export.js +2 -1
- package/esm5/src/debug/debug_node.js +3 -15
- package/esm5/src/di/defs.js +1 -1
- package/esm5/src/di/forward_ref.js +7 -6
- package/esm5/src/di/injectable.js +2 -3
- package/esm5/src/di/injection_token.js +5 -83
- package/esm5/src/di/injector.js +13 -27
- package/esm5/src/di/metadata.js +1 -6
- package/esm5/src/di/provider.js +1 -1
- package/esm5/src/di/r3_injector.js +13 -39
- package/esm5/src/di/reflective_errors.js +14 -7
- package/esm5/src/di/reflective_injector.js +19 -265
- package/esm5/src/di/reflective_key.js +4 -45
- package/esm5/src/di/reflective_provider.js +17 -35
- package/esm5/src/di/scope.js +1 -1
- package/esm5/src/di.js +6 -1
- package/esm5/src/error_handler.js +7 -66
- package/esm5/src/errors.js +1 -1
- package/esm5/src/event_emitter.js +4 -95
- package/esm5/src/i18n/tokens.js +9 -49
- package/esm5/src/linker/compiler.js +9 -69
- package/esm5/src/linker/component_factory.js +2 -18
- package/esm5/src/linker/component_factory_resolver.js +1 -1
- package/esm5/src/linker/element_ref.js +2 -32
- package/esm5/src/linker/ng_module_factory.js +3 -25
- package/esm5/src/linker/ng_module_factory_loader.js +2 -10
- package/esm5/src/linker/query_list.js +12 -112
- package/esm5/src/linker/system_js_ng_module_factory_loader.js +4 -16
- package/esm5/src/linker/template_ref.js +2 -26
- package/esm5/src/linker/view_container_ref.js +2 -38
- package/esm5/src/linker/view_ref.js +10 -115
- package/esm5/src/linker.js +2 -1
- package/esm5/src/metadata/di.js +7 -25
- package/esm5/src/metadata/directives.js +111 -20
- package/esm5/src/metadata/lifecycle_hooks.js +1 -1
- package/esm5/src/metadata/ng_module.js +14 -9
- package/esm5/src/metadata/view.js +1 -20
- package/esm5/src/metadata.js +1 -1
- package/esm5/src/platform_core_providers.js +1 -1
- package/esm5/src/profile/profile.js +1 -1
- package/esm5/src/profile/wtf_impl.js +1 -1
- package/esm5/src/reflection/platform_reflection_capabilities.js +1 -1
- package/esm5/src/reflection/reflection.js +1 -1
- package/esm5/src/reflection/reflection_capabilities.js +3 -8
- package/esm5/src/reflection/reflector.js +2 -10
- package/esm5/src/reflection/types.js +1 -1
- package/esm5/src/render/api.js +7 -71
- package/esm5/src/render.js +2 -1
- package/esm5/src/render3/assert.js +1 -1
- package/esm5/src/render3/component.js +6 -5
- package/esm5/src/render3/definition.js +6 -8
- package/esm5/src/render3/di.js +9 -14
- package/esm5/src/render3/errors.js +1 -1
- package/esm5/src/render3/hooks.js +2 -2
- package/esm5/src/render3/index.js +11 -1
- package/esm5/src/render3/instructions.js +52 -38
- package/esm5/src/render3/interfaces/container.js +1 -1
- package/esm5/src/render3/interfaces/definition.js +1 -1
- package/esm5/src/render3/interfaces/injector.js +1 -1
- package/esm5/src/render3/interfaces/node.js +1 -1
- package/esm5/src/render3/interfaces/projection.js +1 -1
- package/esm5/src/render3/interfaces/query.js +1 -1
- package/esm5/src/render3/interfaces/renderer.js +1 -3
- package/esm5/src/render3/interfaces/view.js +1 -1
- package/esm5/src/render3/ng_dev_mode.js +1 -1
- package/esm5/src/render3/node_assert.js +1 -1
- package/esm5/src/render3/node_manipulation.js +12 -15
- package/esm5/src/render3/node_selector_matcher.js +2 -2
- package/esm5/src/render3/pipe.js +1 -1
- package/esm5/src/render3/pure_function.js +1 -1
- package/esm5/src/render3/query.js +11 -59
- package/esm5/src/render3/util.js +1 -1
- package/esm5/src/render3/view_ref.js +15 -345
- package/esm5/src/sanitization/html_sanitizer.js +8 -12
- package/esm5/src/sanitization/inert_body.js +8 -72
- package/esm5/src/sanitization/sanitization.js +1 -1
- package/esm5/src/sanitization/security.js +2 -37
- package/esm5/src/sanitization/style_sanitizer.js +1 -1
- package/esm5/src/sanitization/url_sanitizer.js +1 -1
- package/esm5/src/testability/testability.js +21 -143
- package/esm5/src/type.js +1 -1
- package/esm5/src/util/decorators.js +1 -1
- package/esm5/src/util/lang.js +1 -1
- package/esm5/src/util/property.js +1 -1
- package/esm5/src/util.js +6 -1
- package/esm5/src/version.js +3 -13
- package/esm5/src/view/element.js +7 -7
- package/esm5/src/view/entrypoint.js +1 -1
- package/esm5/src/view/errors.js +1 -1
- package/esm5/src/view/index.js +1 -1
- package/esm5/src/view/ng_content.js +1 -1
- package/esm5/src/view/ng_module.js +4 -1
- package/esm5/src/view/provider.js +12 -12
- package/esm5/src/view/pure_expression.js +1 -1
- package/esm5/src/view/query.js +6 -6
- package/esm5/src/view/refs.js +8 -14
- package/esm5/src/view/services.js +16 -20
- package/esm5/src/view/text.js +1 -1
- package/esm5/src/view/types.js +19 -41
- package/esm5/src/view/util.js +5 -5
- package/esm5/src/view/view.js +4 -6
- package/esm5/src/view/view_attach.js +5 -5
- package/esm5/src/zone/ng_zone.js +22 -257
- package/esm5/src/zone.js +2 -1
- package/esm5/testing/index.js +5 -1
- package/esm5/testing/public_api.js +6 -1
- package/esm5/testing/src/async.js +1 -1
- package/esm5/testing/src/async_fallback.js +1 -1
- package/esm5/testing/src/async_test_completer.js +2 -8
- package/esm5/testing/src/before_each.js +6 -1
- package/esm5/testing/src/component_fixture.js +9 -75
- package/esm5/testing/src/fake_async.js +12 -3
- package/esm5/testing/src/fake_async_fallback.js +5 -3
- package/esm5/testing/src/lang_utils.js +1 -1
- package/esm5/testing/src/logger.js +1 -1
- package/esm5/testing/src/metadata_override.js +1 -1
- package/esm5/testing/src/ng_zone_mock.js +1 -1
- package/esm5/testing/src/private_export_testing.js +1 -1
- package/esm5/testing/src/render3.js +1 -5
- package/esm5/testing/src/test_bed.js +20 -172
- package/esm5/testing/src/test_compiler.js +5 -43
- package/esm5/testing/src/testing.js +6 -1
- package/esm5/testing/src/testing_internal.js +3 -9
- package/fesm2015/core.js +248 -177
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +9 -13
- package/fesm2015/testing.js.map +1 -1
- package/fesm5/core.js +591 -2007
- package/fesm5/core.js.map +1 -1
- package/fesm5/testing.js +61 -237
- package/fesm5/testing.js.map +1 -1
- package/package.json +1 -1
- package/src/application_ref.d.ts +7 -8
- package/src/change_detection/change_detector_ref.d.ts +6 -4
- package/src/change_detection/differs/iterable_differs.d.ts +3 -2
- package/src/change_detection/differs/keyvalue_differs.d.ts +3 -2
- package/src/change_detection/pipe_transform.d.ts +2 -5
- package/src/di/forward_ref.d.ts +7 -5
- package/src/di/injectable.d.ts +4 -14
- package/src/di/injection_token.d.ts +5 -7
- package/src/di/injector.d.ts +7 -10
- package/src/di/metadata.d.ts +13 -86
- package/src/di/provider.d.ts +55 -150
- package/src/di/reflective_errors.d.ts +13 -6
- package/src/di/reflective_injector.d.ts +21 -23
- package/src/di/reflective_provider.d.ts +7 -8
- package/src/error_handler.d.ts +1 -4
- package/src/event_emitter.d.ts +3 -0
- package/src/i18n/tokens.d.ts +8 -4
- package/src/linker/query_list.d.ts +2 -2
- package/src/linker/view_ref.d.ts +9 -6
- package/src/metadata/di.d.ts +41 -59
- package/src/metadata/directives.d.ts +410 -460
- package/src/metadata/lifecycle_hooks.d.ts +8 -8
- package/src/metadata/ng_module.d.ts +49 -38
- package/src/render3/view_ref.d.ts +6 -2
- package/src/zone/ng_zone.d.ts +1 -0
- package/testing/src/fake_async.d.ts +4 -2
- package/testing/src/fake_async_fallback.d.ts +4 -2
- package/testing/src/metadata_override.d.ts +3 -3
- package/testing.d.ts +0 -5
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|
|
23
|
-
* -
|
|
24
|
-
* -
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
59
|
+
* The set of injectable objects that are available in the injector
|
|
56
60
|
* of this module.
|
|
57
61
|
*
|
|
58
|
-
*
|
|
62
|
+
* @usageNotes
|
|
59
63
|
*
|
|
60
|
-
*
|
|
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
|
-
*
|
|
90
|
+
* The set of directives and pipes that belong to this module.
|
|
91
|
+
*
|
|
92
|
+
* @usageNotes
|
|
86
93
|
*
|
|
87
|
-
*
|
|
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
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
116
|
-
* of any component that is part of an
|
|
117
|
-
* that imports this
|
|
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
|
-
*
|
|
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
|
-
*
|
|
132
|
-
* For each component listed here, Angular
|
|
133
|
-
* and
|
|
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
|
-
*
|
|
150
|
+
* The set of components that are bootstrapped when
|
|
138
151
|
* this module is bootstrapped. The components listed here
|
|
139
|
-
*
|
|
152
|
+
* are automatically added to `entryComponents`.
|
|
140
153
|
*/
|
|
141
154
|
bootstrap?: Array<Type<any> | any[]>;
|
|
142
155
|
/**
|
|
143
|
-
*
|
|
144
|
-
*
|
|
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
|
-
*
|
|
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`
|
|
152
|
-
* allowed elements
|
|
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
|
-
*
|
|
157
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.
|
package/src/zone/ng_zone.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export declare function resetFakeAsyncZone(): void;
|
|
|
14
14
|
*
|
|
15
15
|
* Can be used to wrap inject() calls.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
34
|
+
* @usageNotes
|
|
35
|
+
* ### Example
|
|
34
36
|
*
|
|
35
37
|
* {@example core/testing/ts/fake_async.ts region='basic'}
|
|
36
38
|
*
|
package/testing.d.ts
CHANGED
package/testing.metadata.json
CHANGED
|
@@ -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"}
|