Zhicheng WANG
8744f17f5d
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/content/cli/index.md
# aio/content/file-not-found.md
# aio/content/guide/architecture-modules.md
# aio/content/guide/architecture-services.md
# aio/content/guide/build.md
# aio/content/guide/deployment.md
# aio/content/guide/elements.md
# aio/content/guide/feature-modules.md
# aio/content/guide/file-structure.md
# aio/content/guide/forms-overview.md
# aio/content/guide/glossary.md
# aio/content/guide/i18n.md
# aio/content/guide/npm-packages.md
# aio/content/guide/releases.md
# aio/content/guide/router.md
# aio/content/guide/service-worker-config.md
# aio/content/guide/service-worker-intro.md
# aio/content/guide/testing.md
# aio/content/guide/upgrade-performance.md
# aio/content/navigation.json
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt5.md
# aio/content/tutorial/toh-pt6.md
# aio/package.json
# aio/src/app/custom-elements/api/api-list.component.ts
# aio/src/app/documents/document.service.ts
# aio/src/app/layout/top-menu/top-menu.component.ts
# aio/src/index.html
# aio/src/styles/2-modules/_api-pages.scss
# aio/tools/transforms/templates/api/base.template.html
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/tools/transforms/templates/cli/cli-container.template.html
# aio/tools/transforms/templates/lib/githubLinks.html
# aio/yarn.lock
# packages/animations/src/animation_metadata.ts
# packages/common/http/src/backend.ts
# packages/common/http/src/client.ts
# packages/common/http/src/headers.ts
# packages/common/http/src/interceptor.ts
# packages/common/http/src/module.ts
# packages/common/http/src/params.ts
# packages/common/http/src/request.ts
# packages/common/http/src/response.ts
# packages/common/src/common_module.ts
# packages/common/src/directives/ng_class.ts
# packages/common/src/directives/ng_style.ts
# packages/common/src/directives/ng_switch.ts
# packages/common/src/i18n/format_date.ts
# packages/common/src/pipes/number_pipe.ts
# packages/core/src/change_detection/change_detection_util.ts
# packages/core/src/change_detection/pipe_transform.ts
# packages/core/src/di/injectable.ts
# packages/core/src/linker/element_ref.ts
# packages/core/src/linker/template_ref.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/directives.ts
# packages/core/src/metadata/lifecycle_hooks.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render/api.ts
# packages/forms/src/directives/form_interface.ts
# packages/forms/src/directives/ng_form.ts
# packages/forms/src/directives/ng_model.ts
# packages/forms/src/directives/reactive_directives/form_control_name.ts
# packages/forms/src/directives/select_control_value_accessor.ts
# packages/forms/src/directives/validators.ts
# packages/forms/src/form_builder.ts
# packages/forms/src/form_providers.ts
# packages/forms/src/model.ts
# packages/forms/src/validators.ts
# packages/platform-browser/src/browser.ts
# packages/platform-browser/src/security/dom_sanitization_service.ts
# packages/router/src/config.ts
# packages/router/src/events.ts
# packages/router/src/router.ts
# packages/router/src/router_module.ts
# packages/router/src/shared.ts
2018-12-29 16:04:37 +08:00
Kara Erickson
a20b2f72f2
fix(ivy): process creation mode deeply before running update mode ( #27744 )
...
Prior to this commit, we had two different modes for change detection
execution for Ivy, depending on whether you called `bootstrap()` or
`renderComponent()`. In the former case, we would complete creation
mode for all components in the tree before beginning update mode for
any component. In the latter case, we would run creation mode and
update mode together for each component individually.
Maintaining code to support these two different execution orders was
unnecessarily complex, so this commit aligns the two bootstrapping
mechanisms to execute in the same order. Now creation mode always
runs for all components before update mode begins.
This change also simplifies our rendering logic so that we use
`LView` flags as the source of truth for rendering mode instead of
`rf` function arguments. This fixed some related bugs (e.g. calling
`ViewRef.detectChanges` synchronously after the view's creation
would create view nodes twice, view queries would execute twice, etc).
PR Close #27744
2018-12-19 15:10:16 -05:00
Pawel Kozlowski
ea10a3abe5
test(ivy): enable all test for @angular/common ( #27700 )
...
PR Close #27700
2018-12-17 09:32:09 -08:00
Ruslan Dzhabbarov
7dab458884
docs(common): fix documentation for getLocaleCurrencyName ( #27087 )
...
PR Close #27087
2018-12-14 15:27:03 -08:00
Ingo Bürk
b39efdd9d6
fix(common): KeyValuePipe should return empty array for empty objects ( #27258 )
...
This lets KeyValuePipe return an empty array (rather than undefined)
when the input is empty.
PR Close #27258
2018-12-14 15:19:13 -08:00
Christopher Dahm
d0d351cccb
docs(common): update currencyPipe default digitsInfo values ( #27417 )
...
Change the docs to reflect the actual default values
Fixes #27414
PR Close #27417
2018-12-14 10:26:56 -08:00
cooljeffro
7fae9114c8
docs(common): Fix typo in KeyValuePipe docs ( #27580 )
...
PR Close #27580
2018-12-14 10:21:47 -08:00
Alex Eagle
d32939d51a
build: restrict visibility of npm_package targets ( #27611 )
...
dependencies on these cause very long rebuilds which have to re-package angular.
Such tests belong in the integration/ folder
PR Close #27611
2018-12-14 10:20:40 -08:00
Igor Minar
4f81a7c590
test(common): run @angular/common/http/testing tests under bazel ( #27386 )
...
PR Close #27386
2018-12-05 20:55:31 -08:00
Misko Hevery
f52600e261
test(ivy): add ability to find already passing tests ( #27449 )
...
PR Close #27449
2018-12-05 09:34:52 -08:00
Christopher Dahm
d84705121a
test(common): add PercentPipe round and trim tests ( #27365 )
...
Add tests to cover the percent's decimal to be rounded and trimmed.
PR Close #27365
2018-12-03 08:22:25 -08:00
Christopher Dahm
f3f2ef4a2a
docs(common): update PercentPipe default maxFractionDigits value ( #27365 )
...
Change the docs to reflect the actual default value
Fixes #27079
PR Close #27365
2018-12-03 08:22:25 -08:00
Pawel Kozlowski
3074f0e436
test(ivy): update root causes for @angular/common TestBed failures ( #27322 )
...
PR Close #27322
2018-11-28 11:39:14 -08:00
Misko Hevery
39e426cde3
fix(ivy): TestBed.get(Compiler) throws "Error: Runtime compiler is not loaded" ( #27223 )
...
BREAKING CHANGE:
The public API for `DebugNode` was accidentally too broad. This change removes
1. Public constructor. Since `DebugNode` is a way for Angular to communicate information
on to the developer there is no reason why the developer should ever need to
Instantiate the `DebugNode`
2. We are also removing `removeChild`, `addChild`, `insertBefore`, and `insertChildAfter`.
All of these methods are used by Angular to constructor the correct `DebugNode` tree.
There is no reason why the developer should ever be constructing a `DebugNode` tree
And these methods should have never been made public.
3. All properties have been change to `readonly` since `DebugNode` is used by Angular
to communicate to developer and there is no reason why these APIs should be writable.
While technically breaking change we don’t expect anyone to be effected by this change.
PR Close #27223
2018-11-27 13:42:23 -08:00
Trotyl Yu
1db53da0d3
fix(common): expose request url in network error ( #27143 )
...
closes #27029
PR Close #27143
2018-11-27 10:16:22 -08:00
Pawel Kozlowski
a43998c089
test(ivy): add JIRA references for root-casuse TestBed failrues ( #27188 )
...
PR Close #27188
2018-11-20 10:43:11 -08:00
Kara Erickson
3ec7c5081d
test(ivy): fix paths for http tests to work with ivy ( #27121 )
...
PR Close #27121
2018-11-15 21:18:00 -08:00
Pawel Kozlowski
ce5242462b
fix(ivy): implement rootNodes getter on ViewRef ( #27095 )
...
PR Close #27095
2018-11-14 12:28:03 -08:00
Pawel Kozlowski
8a626288a6
test(ivy): run more common tests with ivy on ci ( #27089 )
...
With https://github.com/angular/angular/pull/27068 merged we can activate
more ivy tests on CI.
PR Close #27089
2018-11-14 12:25:35 -08:00
Pawel Kozlowski
7695dbd0bd
test(ivy): run common tests with ivy on ci ( #27071 )
...
PR Close #27071
2018-11-13 10:59:55 -08:00
Misko Hevery
7d2a746090
build: remove ivy JIT mode ( #26863 )
...
PR Close #26863
2018-11-02 15:44:05 -07:00
Igor Minar
ee0b857172
build: rename the ivy compile mode 'local' to 'aot' ( #26686 )
...
PR Close #26686
2018-10-23 14:14:49 -07:00
Igor Minar
4237c34c78
test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags ( #26471 )
...
We are close enough to blacklist a few test targets, rather than whitelist targets to run...
Because bazel rules can be composed of other rules that don't inherit tags automatically,
I had to explicitly mark all of our ts_library and ng_module targes with "ivy-local" and
"ivy-jit" tags so that we can create a query that excludes all fixme- tagged targets even
if those targets are composed of other targets that don't inherit this tag.
This is the updated overview of ivy related bazel tags:
- ivy-only: target that builds or runs only under ivy
- fixme-ivy-jit: target that doesn't yet build or run under ivy with --compile=jit
- fixme-ivy-local: target that doesn't yet build or run under ivy with --compile=local
- no-ivy-jit: target that is not intended to build or run under ivy with --compile=jit
- no-ivy-local: target that is not intended to build or run under ivy with --compile=local
PR Close #26471
2018-10-23 08:57:42 -07:00
Zhicheng Wang
9a0d3e9633
docs: 手动解决冲突
2018-10-22 18:16:47 +08:00
Zhicheng Wang
a9ac90d3df
Merge remote-tracking branch 'en/master' into aio
...
# Conflicts:
# aio/content/guide/ajs-quick-reference.md
# aio/content/guide/animations.md
# aio/content/guide/aot-compiler.md
# aio/content/guide/architecture-components.md
# aio/content/guide/architecture-modules.md
# aio/content/guide/architecture-next-steps.md
# aio/content/guide/architecture-services.md
# aio/content/guide/architecture.md
# aio/content/guide/attribute-directives.md
# aio/content/guide/bootstrapping.md
# aio/content/guide/browser-support.md
# aio/content/guide/cheatsheet.md
# aio/content/guide/comparing-observables.md
# aio/content/guide/component-interaction.md
# aio/content/guide/component-styles.md
# aio/content/guide/dependency-injection-in-action.md
# aio/content/guide/dependency-injection-pattern.md
# aio/content/guide/dependency-injection.md
# aio/content/guide/deployment.md
# aio/content/guide/displaying-data.md
# aio/content/guide/dynamic-component-loader.md
# aio/content/guide/elements.md
# aio/content/guide/feature-modules.md
# aio/content/guide/form-validation.md
# aio/content/guide/forms.md
# aio/content/guide/glossary.md
# aio/content/guide/hierarchical-dependency-injection.md
# aio/content/guide/i18n.md
# aio/content/guide/lazy-loading-ngmodules.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/ngmodule-vs-jsmodule.md
# aio/content/guide/ngmodules.md
# aio/content/guide/npm-packages.md
# aio/content/guide/observables-in-angular.md
# aio/content/guide/observables.md
# aio/content/guide/pipes.md
# aio/content/guide/practical-observable-usage.md
# aio/content/guide/providers.md
# aio/content/guide/quickstart.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/router.md
# aio/content/guide/rx-library.md
# aio/content/guide/security.md
# aio/content/guide/service-worker-communications.md
# aio/content/guide/service-worker-getting-started.md
# aio/content/guide/service-worker-intro.md
# aio/content/guide/setup-systemjs-anatomy.md
# aio/content/guide/setup.md
# aio/content/guide/singleton-services.md
# aio/content/guide/structural-directives.md
# aio/content/guide/styleguide.md
# aio/content/guide/template-syntax.md
# aio/content/guide/testing.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/universal.md
# aio/content/guide/updating.md
# aio/content/guide/upgrade.md
# aio/content/guide/user-input.md
# aio/content/guide/visual-studio-2015.md
# aio/content/marketing/docs.md
# aio/content/navigation.json
# aio/content/tutorial/toh-pt0.md
# aio/content/tutorial/toh-pt1.md
# aio/content/tutorial/toh-pt2.md
# aio/content/tutorial/toh-pt3.md
# aio/content/tutorial/toh-pt4.md
# aio/content/tutorial/toh-pt5.md
# aio/content/tutorial/toh-pt6.md
# aio/ngsw-manifest.json
# aio/package.json
# aio/src/app/custom-elements/api/api-list.component.html
# aio/src/app/custom-elements/api/api-list.component.ts
# aio/src/index.html
# aio/tools/transforms/templates/api/base.template.html
# aio/tools/transforms/templates/api/class.template.html
# aio/tools/transforms/templates/api/directive.template.html
# aio/tools/transforms/templates/api/enum.template.html
# aio/tools/transforms/templates/api/includes/class-overview.html
# aio/tools/transforms/templates/api/includes/deprecation.html
# aio/tools/transforms/templates/api/includes/export-as.html
# aio/tools/transforms/templates/api/includes/info-bar.html
# aio/tools/transforms/templates/api/includes/interface-overview.html
# aio/tools/transforms/templates/api/includes/selectors.html
# aio/tools/transforms/templates/api/lib/directiveHelpers.html
# aio/tools/transforms/templates/api/lib/githubLinks.html
# aio/tools/transforms/templates/api/lib/memberHelpers.html
# aio/tools/transforms/templates/api/package.template.html
# aio/yarn.lock
# packages/common/http/src/module.ts
# packages/common/src/common_module.ts
# packages/common/src/directives/ng_for_of.ts
# packages/common/src/directives/ng_if.ts
# packages/common/src/directives/ng_template_outlet.ts
# packages/common/src/location/location.ts
# packages/common/src/pipes/async_pipe.ts
# packages/common/src/pipes/json_pipe.ts
# packages/common/src/pipes/number_pipe.ts
# packages/common/src/pipes/slice_pipe.ts
# packages/core/src/change_detection/change_detector_ref.ts
# packages/core/src/di/injectable.ts
# packages/core/src/linker/template_ref.ts
# packages/core/src/linker/view_container_ref.ts
# packages/core/src/metadata/di.ts
# packages/core/src/metadata/ng_module.ts
# packages/core/src/render/api.ts
# packages/forms/src/directives/form_interface.ts
# packages/forms/src/directives/ng_form.ts
# packages/forms/src/directives/ng_model.ts
# packages/forms/src/directives/reactive_directives/form_control_name.ts
# packages/forms/src/directives/select_control_value_accessor.ts
# packages/forms/src/directives/validators.ts
# packages/forms/src/form_providers.ts
# packages/forms/src/model.ts
# packages/forms/src/validators.ts
# packages/router/src/config.ts
# packages/router/src/router.ts
# packages/router/src/router_module.ts
# packages/router/src/router_state.ts
2018-10-21 17:43:29 +08:00
Pete Bacon Darwin
0918adf39d
docs: common with `@publicApi` tags ( #26595 )
...
PR Close #26595
2018-10-19 14:35:53 -07:00
Pete Bacon Darwin
24521f549c
docs: convert all `@experimental` tags to `@publicApi` tags ( #26595 )
...
PR Close #26595
2018-10-19 14:35:52 -07:00
Ash Kyd
c9cfcfa728
docs: clarify CurrencyPipe display property ( #25852 )
...
Clarify how to suppress the currency/code in the CurrencyPipe by passing an empty string.
PR Close #25852
2018-10-05 15:42:57 -07:00
Judy Bogart
f543d71cc3
docs: add package doc files ( #26047 )
...
PR Close #26047
2018-10-05 15:42:14 -07:00
Alex Rickabaugh
36d6e6076e
feat(ivy): support template type check narrowing for *ngFor and *ngIf ( #26203 )
...
This commit adds an ngTemplateGuard_ngIf static method to the NgIf
directive and an ngTemplateContextGuard static method to NgFor. The
function of these two static methods is to enable type narrowing
within generated type checking code for consumers of the directives.
PR Close #26203
2018-10-04 10:11:17 -07:00
Pete Bacon Darwin
72dce34f42
docs(common): move `KeyValuePipe` example to `@usageNotes` ( #26039 )
...
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
c08549ae38
docs(common): move `KeyValuePipe` example to `@usageNotes` ( #26039 )
...
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
cf8ad24dcf
docs(common): remove legacy `@whatItDoes` tag ( #26039 )
...
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
927323f24e
docs: add missing `@ngModule` tags ( #25734 )
...
PR Close #25734
2018-09-19 16:18:24 -07:00
Judy Bogart
dd5e35ee67
docs: add ngmodule api doc ( #25618 )
...
PR Close #25618
2018-09-19 10:40:58 -07:00
Alex Eagle
cbbad1b791
refactor(ivy): pre-factor: set explicit type parameters for ModuleWithProviders ( #25970 )
...
Ivy depends on having the generic type token later when reading the ModuleWithProviders from a .d.ts file.
PR Close #25970
2018-09-18 13:28:44 -07:00
Greg Magolan
b99d7ed5bf
build(bazel): update to rules_typescript 0.17.0 & rules_nodejs 0.13.4 ( #25920 )
...
PR Close #25920
2018-09-18 13:05:38 -07:00
Vikram Subramanian
d83f9d432a
fix(common): register locale data for all equivalent closure locales ( #25867 )
...
This fix is for the issue below when compiling I18N Angular apps using closure.
For certain locales closure converts the input locale id to a different equivalent locale string. For example if the input locale is 'id'(for Indonesia) goog.LOCALE is set to 'in' and the closure locale data is registered only for 'in'. The Angular compiler uses the original input locale string, 'id' to set the LOCALE_ID token and there is a mismatch of locale used to register and locale used when requesting the locale data.
The fix is for the closure-locale.ts code to register the locale data for all equivalent locales names so that it doesn't matter what goog.LOCALE is actually set to.
PR Close #25867
2018-09-10 13:59:56 -07:00
Zhicheng Wang
d9a50a8452
docs(API): 翻译完了 HttpResponse
2018-09-04 16:37:03 +08:00
Zhicheng Wang
8dbe7ff025
docs(API): 翻译完了 formatDate
2018-09-04 15:48:34 +08:00
Zhicheng Wang
3819d7de3b
docs(API): 翻译完了 common/http
2018-09-04 15:04:47 +08:00
Zhicheng Wang
719650b41f
docs(API): 翻译完了 CommonModule
2018-09-04 14:56:11 +08:00
Zhicheng Wang
a510ed5312
docs(API): 翻译完了 JsonPipe
2018-09-04 14:54:23 +08:00
Zhicheng Wang
adb6be6a02
docs(API): 翻译完了 SlicePipe
2018-09-04 14:50:06 +08:00
Zhicheng Wang
06368682ef
docs(API): 翻译完了 HttpRequest
2018-09-04 13:55:45 +08:00
Zhicheng Wang
785aecb6dd
docs(API): 翻译完了 HttpInterceptor
2018-09-04 13:33:50 +08:00
Zhicheng Wang
d1985fc7d1
docs(API): 翻译完了 HttpParams
2018-09-04 11:05:45 +08:00
Zhicheng Wang
e8d4f26644
docs(API): 翻译完了 DecimalPipe 和 CurrencyPipe
2018-09-04 10:12:28 +08:00
Zhicheng Wang
391aed864a
docs(API): 翻译完了 Location
2018-09-04 09:19:39 +08:00
Zhicheng Wang
eb075b665f
docs(API): 翻译完了 NgTemplateOutlet
2018-09-04 08:43:00 +08:00