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
Judy Bogart
f543d71cc3
docs: add package doc files ( #26047 )
...
PR Close #26047
2018-10-05 15:42:14 -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
Zhicheng Wang
d9a50a8452
docs(API): 翻译完了 HttpResponse
2018-09-04 16:37:03 +08:00
Zhicheng Wang
3819d7de3b
docs(API): 翻译完了 common/http
2018-09-04 15:04:47 +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
6312e38a63
docs(API): 翻译完了 HttpHeaders
2018-09-02 19:31:59 +08:00
Zhicheng Wang
59425a1e5e
docs(API): 翻译完了 HttpClientModule
2018-09-01 21:44:38 +08:00
Zhicheng Wang
2cd125f40c
docs(API): 改进标题行翻译方式
...
docs(API): 翻译了 directive.ts 中的所有 tsdoc
2018-08-31 09:01:12 +08:00
Zhicheng Wang
2dacd7f813
docs(API): 尝试对部分高频 API 进行翻译 - HttpClient
2018-08-30 12:22:02 +08:00
Alan Agius
5653fada32
feat: add TypeScript 3 support ( #25275 )
...
PR Close #25275
2018-08-27 21:07:53 -04:00
Pete Bacon Darwin
15cc85c54a
style(common): fix short param names ( #23667 )
...
PR Close #23667
2018-08-03 14:09:27 -07:00
Drummond Dawson
5982425436
test(common): TokenExtractor should extend HttpXsrfTokenExtractor in xsrf spec ( #24649 )
...
PR Close #24649
2018-08-02 08:34:15 -07:00
Drummond Dawson
140248ade0
test(common): remove unused import in xsrf spec ( #24649 )
...
PR Close #24649
2018-08-02 08:34:14 -07:00
Alex Rickabaugh
d05d28629d
test(common): run common/http tests with Bazel ( #24738 )
...
@angular/common/http had tests which were not executed in Bazel. This
commit adds a BUILD.bazel file and ensures the tests pass.
PR Close #24738
2018-07-12 16:36:35 -04:00
George Kalpakas
e01b539ee5
refactor: infer type for it()
assertion functions ( #19904 )
...
PR Close #19904
2018-07-06 13:48:02 -07:00
riren
5fe1e74dd3
docs(common): fix in the documentation of PUT ( #24528 )
...
PR Close #24528
2018-07-06 10:13:20 -07:00
Rafael
8fe8b8fcff
docs: fix typos in 'Httpclient' docs ( #19127 )
...
PR Close #19127
2018-07-06 10:09:40 -07:00
Judy Bogart
7d318743c1
docs: test doc for decorator templates ( #23902 ) ( #23902 )
...
PR Close #23902
PR Close #23902
2018-06-25 10:49:31 -07:00
Rado Kirov
c95437f15d
build(bazel): Turning on strictPropertyInitialization for Angular. ( #24572 )
...
All errors for existing fields have been detected and suppressed with a
`!` assertion.
Issue/24571 is tracking proper clean up of those instances.
One-line change required in ivy/compilation.ts, because it appears that
the new syntax causes tsickle emitted node to no longer track their
original sourceFiles.
PR Close #24572
2018-06-25 07:57:13 -07:00
Vikram Subramanian
60aa943e2d
fix(platform-server): avoid dependency cycle when using http interceptor ( #24229 )
...
Fixes #23023 .
When a HTTP Interceptor injects HttpClient it causes a DI cycle. This fix is to use Injector to lazily inject HTTP_INTERCEPTORS while setting up the HttpHandler on the server so as to break the cycle.
PR Close #24229
2018-06-01 08:33:45 -07:00
swseverance
fe3679a356
style: remove empty comments ( #23404 )
...
PR Close #23404
2018-05-10 15:48:13 -07:00
Pete Bacon Darwin
4b96a58c5a
docs: remove all deprecated @stable
jsdoc tags ( #23210 )
...
These are no longer needed as stable docs are computed as those that
do not have `@experimental` or `@deprecated` tags.
PR Close #23210
2018-04-10 21:49:32 -07:00
Matias Niemelä
bf6a416bce
revert: docs(common): add HttpParamsOptions
to the public API ( #20332 )
...
This reverts commit 7b7757dd3d38a95ed20a6dd2d6db44f269eec087.
2018-03-26 16:29:46 -04:00
George Kalpakas
7b7757dd3d
docs(common): add HttpParamsOptions
to the public API ( #20332 )
...
Fixes #20276
PR Close #20332
2018-03-23 16:31:10 -04:00
Igor Minar
7d095b96cd
fix: correct several esm2015 entry-points in package.jsons ( #22892 )
...
PR Close #22892
2018-03-20 13:30:08 -07:00
Igor Minar
b43f8bc7d3
feat(core): upgrade rxjs to 6.0.0-alpha.4 ( #22573 )
...
PR Close #22573
2018-03-19 21:51:51 -07:00
Igor Minar
ce63dc6f95
feat: update the package output of build.sh to APF v6 ( #22808 )
...
PR Close #22808
2018-03-18 09:33:51 -07:00
Igor Minar
44de10e2db
feat: mark angular packages as side-effect free ( #22785 )
...
This flag is picked up by webpack v4 and used for more agressive optimizations.
Our code is already side-effect free, because that's what we needed for build-optimizer to work.
PR Close #22785
2018-03-15 14:52:40 -07:00
Alex Eagle
88b3198c80
feat(bazel): change ng_package rule to APF v6 ( #22782 )
...
Angular Package Format v6 stops bundling files in the esm5 and esm2015
directories, now that Webpack 4 can tree-shake per-file.
Adds some missing files like package.json to make packages closer to
what we publish today.
Refactor ng_package to be a type of npm_package and re-use the packaging
action from that rule.
PR Close #22782
2018-03-15 11:38:31 -07:00
Ricardo M
9e6268ba59
docs(http): fix a typo in code comment ( #22327 )
...
PR Close #22327
2018-02-21 11:06:06 -08:00
Trotyl Yu
2639b4bffb
fix(common): correct mapping of Observable methods ( #20518 )
...
fixes #20516
PR Close #20518
2018-02-16 15:10:31 -08:00
Alex Eagle
a069e08354
refactor(bazel): convert most ts_library to ng_module ( #22176 )
...
This is necessary so we can produce ng metadata for our packages that are published as libraries
PR Close #22176
2018-02-15 14:08:53 -08:00
Alex Rickabaugh
647b8595d0
build: update some ts_library rules to ng_module ( #22005 )
...
This is needed so the rules produce metadata.json files, which is essential
for building compiler/integration tests with Bazel.
PR Close #22005
2018-02-12 14:34:59 -08:00
Miško Hevery
0b1f5d2127
Revert "docs(common): add HttpParamsOptions
to the public API ( #20332 )"
...
This reverts commit a9545aba4df81a10de6692619f06b5d0c11614a8.
2018-02-08 14:37:27 -08:00
George Kalpakas
a9545aba4d
docs(common): add HttpParamsOptions
to the public API ( #20332 )
...
Fixes #20276
PR Close #20332
2018-02-08 09:44:36 -08:00
Alex Rickabaugh
8b14488827
fix(common): don't convert null to a string when flushing a mock request ( #21417 )
...
A bug in TestRequest caused null response bodies to be stringified. This
change causes null to be treated faithfully.
Fixes #20744
PR Close #21417
2018-02-01 08:32:43 -08:00
Alex Rickabaugh
120bdeecdc
fix(common): allow HttpInterceptors to inject HttpClient ( #19809 )
...
Previously, an interceptor attempting to inject HttpClient directly
would receive a circular dependency error, as HttpClient was
constructed via a factory which injected the interceptor instances.
Users want to inject HttpClient into interceptors to make supporting
requests (ex: to retrieve an authentication token). Currently this is
only possible by injecting the Injector and using it to resolve
HttpClient at request time.
Either HttpClient or the user has to deal specially with the circular
dependency. This change moves that responsibility into HttpClient
itself. By utilizing a new class HttpInterceptingHandler which lazily
loads the set of interceptors at request time, it's possible to inject
HttpClient directly into interceptors as construction of HttpClient no
longer requires the interceptor chain to be constructed.
Fixes #18224 .
PR Close #19809
2018-01-29 16:12:32 -08:00
Alex Eagle
c4f02e21dd
build: move repeated tsconfig attributes to a macro ( #20964 )
...
This helps ensure we use the same tsconfig.json file for all compilations.
Next steps are to make it the same tsconfig.json file used by the editor
PR Close #20964
2018-01-10 12:30:19 -08:00
Misko Hevery
3d50fd7cac
build: add bazel test rules for remainder of packages ( #21053 )
...
PR Close #21053
2017-12-22 13:10:51 -08:00
Misko Hevery
47e251a80a
build: remove main()
from specs ( #21053 )
...
PR Close #21053
2017-12-22 13:10:51 -08:00
Yuan Gao
e544742156
refactor(core): Removed readonly getters and changed to readonly ( #19842 )
...
variables
PR Close #19842
2017-12-08 10:24:19 -08:00
Alex Eagle
ef534c0cc1
build: upgrade bazel rules to latest ( #20768 )
...
Add enough BUILD files to make it possible to
`bazel build packages/core/test`
Also re-format BUILD.bazel files with Buildifier.
Add a CI lint check that they stay formatted.
PR Close #20768
2017-12-07 11:27:50 -08:00
Alex Rickabaugh
aafa75da84
fix(common): don't strip XSSI prefix for if error isn't JSON ( #19958 )
...
This changes XhrBackend to not strip the XSSI prefix from error text
if such a prefix is present but the remaining body does not parse as
JSON.
PR Close #19958
2017-11-28 22:27:10 -06:00
Alex Rickabaugh
503be69af6
fix(common): treat an empty body as null when parsing JSON in HttpClient ( #19958 )
...
Previously, XhrBackend would call JSON.parse('') if the response body was
empty (a 200 status code with content-length 0). This changes the XhrBackend
to attempt the JSON parse only if the response body is non-empty. Otherwise,
the body is left as null.
Fixes #18680 .
Fixes #19413 .
Fixes #19502 .
Fixes #19555 .
PR Close #19958
2017-11-28 22:27:10 -06:00