@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
package/src/event_emitter.d.ts
CHANGED
|
@@ -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
|
*
|
package/src/i18n/tokens.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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;
|
package/src/linker/view_ref.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
59
|
+
* Notice that the original template is broken down into two separate `TemplateRef`s.
|
|
57
60
|
*
|
|
58
|
-
* The outer/inner
|
|
61
|
+
* The outer/inner `TemplateRef`s are then assembled into views like so:
|
|
59
62
|
*
|
|
60
63
|
* ```
|
|
61
64
|
* <!-- ViewRef: outer-0 -->
|
package/src/metadata/di.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
121
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
147
|
+
* @usageNotes
|
|
148
|
+
* ### Basic Example
|
|
158
149
|
*
|
|
159
|
-
*
|
|
150
|
+
* Here is a simple demonstration of how the `ContentChildren` decorator can be used.
|
|
160
151
|
*
|
|
161
|
-
*
|
|
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
|
-
*
|
|
207
|
+
* @usageNotes
|
|
208
|
+
* ### Example
|
|
217
209
|
*
|
|
218
|
-
* {@example core/di/ts/contentChild/
|
|
210
|
+
* {@example core/di/ts/contentChild/content_child_howto.ts region='HowTo'}
|
|
219
211
|
*
|
|
220
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
262
|
+
* @usageNotes
|
|
276
263
|
*
|
|
277
|
-
*
|
|
264
|
+
* ### Example
|
|
278
265
|
*
|
|
279
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
312
|
+
* @usageNotes
|
|
313
|
+
*
|
|
314
|
+
* ### Example
|
|
315
|
+
*
|
|
316
|
+
* {@example core/di/ts/viewChild/view_child_howto.ts region='HowTo'}
|
|
333
317
|
*
|
|
334
|
-
*
|
|
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;
|