12150 Commits

Author SHA1 Message Date
Zhicheng Wang
8cea4a3646 docs(API): 翻译完了 Validators 2018-09-02 19:23:29 +08:00
Zhicheng Wang
de47500c53 docs(API): 翻译完了 RouterOutlet 2018-09-02 11:53:17 +08:00
Zhicheng Wang
63127dd0c0 docs(API): 翻译完了 NgStyle 2018-09-02 11:31:35 +08:00
Zhicheng Wang
c448443c70 docs(API): 翻译完了 XxxCasePipe 2018-09-02 11:28:43 +08:00
Zhicheng Wang
81b322a2fc docs(API): 翻译完了 OnInit 2018-09-02 11:20:28 +08:00
Zhicheng Wang
3bfa4e5daa docs(API): 翻译完了 ElementRef 2018-09-02 11:11:49 +08:00
Zhicheng Wang
59425a1e5e docs(API): 翻译完了 HttpClientModule 2018-09-01 21:44:38 +08:00
Zhicheng Wang
10ddb2449f docs(API): 翻译完了 RouterModule 2018-09-01 20:55:38 +08:00
Zhicheng Wang
ea796c6952 docs(API): 翻译完了 ViewChild 2018-09-01 14:19:20 +08:00
Zhicheng Wang
cfd6494ade docs(API): 翻译完了 Routes 2018-09-01 13:07:46 +08:00
Zhicheng Wang
a6d7c47763 docs(API): 翻译完了 RouterLink 2018-09-01 10:16:58 +08:00
Zhicheng Wang
f224ca6265 docs(API): 翻译完了 ActivatedRoute 2018-09-01 09:57:03 +08:00
Zhicheng Wang
e436d6972b docs(API): 翻译完了几个表单控件类 2018-09-01 09:19:36 +08:00
Brandon Roberts
abd29f5049 docs(forms): update API reference for reactive and template-driven forms modules (#25687)
PR Close #25687
2018-08-31 13:37:40 -07:00
Pawel Kozlowski
6def18a95e fix(ivy): support directive outputs on ng-template (#25717)
Compiler part of #25698
Fixes #25697

PR Close #25717
2018-08-31 13:37:16 -07:00
Pawel Kozlowski
34be51898d fix(ivy): support host bindings on dynamically created components (#25765)
PR Close #25765
2018-08-31 13:36:53 -07:00
Pawel Kozlowski
1e3460be0b refactor(ivy): remove obsolete types (#25767)
In the past factories could return an array with content queries
but we no longer manage queries in factory functions.

PR Close #25767
2018-08-31 13:36:22 -07:00
Greg Magolan
31349fde90 build(bazel): make resolveTypeReferenceDirectives override work with both ts 2.9 & ts 3.0 (#25581)
PR Close #25581
2018-08-31 11:12:03 -07:00
Greg Magolan
910381ddbd build(bazel): fix bazel types reference directive resolves (#25581)
PR Close #25581
2018-08-31 11:12:03 -07:00
Pete Bacon Darwin
20b9c61d4c perf(ivy): speed up ngcc ivy switch processing (#25534)
Only parse the AST for ngcc ivy switch constants
if the marker is not found in the module text.

PR Close #25534
2018-08-31 09:47:50 -07:00
Pete Bacon Darwin
e964319fe9 test(ivy): test Esm5Renderer.getSwitchableDeclarations (#25534)
Also incorporates a refactoring of the tests to make them less fragile.

PR Close #25534
2018-08-31 09:47:50 -07:00
Pete Bacon Darwin
26cd9f5433 feat(ivy): implement Renderer.getSwitchableDeclarations (#25534)
This supports the "ngcc ivy switch" specified in #25238.

PR Close #25534
2018-08-31 09:47:50 -07:00
Pete Bacon Darwin
e73e864f87 test(ivy): refactor Esm5Renderer tests to make them less fragile (#25534)
PR Close #25534
2018-08-31 09:47:50 -07:00
Pete Bacon Darwin
73047483a1 test(ivy): refactor Esm2015Renderer tests to make them less fragile (#25534)
PR Close #25534
2018-08-31 09:47:50 -07:00
Pete Bacon Darwin
6f168b7a0f feat(ivy): implement NgccReflectionHost.getSwitchableDeclarations() (#25534)
This method will be used to find all the places where the "ivy switch"
will occur. See #25238

PR Close #25534
2018-08-31 09:47:49 -07:00
Alex Rickabaugh
a469c2c412 feat(ivy): produce contextual diagnostics in ngtsc mode (#25647)
TypeScript has a more modern diagnostic emit function which produces
contextually annotated error information, using colors in the console
to indicate where in the code the error occurs.

This commit swiches ngtsc to use this format for diagnostics when
emitting them after a failed compilation.

PR Close #25647
2018-08-31 09:43:31 -07:00
Alex Rickabaugh
38f624d7e3 feat(ivy): output diagnostics for many errors in ngtsc (#25647)
This commit takes the first steps towards ngtsc producing real
TypeScript diagnostics instead of simply throwing errors when
encountering incorrect code.

A new class is introduced, FatalDiagnosticError, which can be thrown by
handlers whenever a condition in the code is encountered which by
necessity prevents the class from being compiled. This error type is
convertable to a ts.Diagnostic which represents the type and source of
the error.

Error codes are introduced for Angular errors, and are prefixed with -99
(so error code 1001 becomes -991001) to distinguish them from other TS
errors.

A function is provided which will read TS diagnostic output and convert
the TS errors to NG errors if they match this negative error code
format.

PR Close #25647
2018-08-31 09:43:30 -07:00
Kara Erickson
b424b3187e fix(compiler): add hostVars and support pure functions in host bindings (#25626)
PR Close #25626
2018-08-31 09:42:58 -07:00
Marc Laval
00f13110be feat(ivy): support injecting Renderer2 (#25523)
PR Close #25523
2018-08-31 09:42:36 -07:00
Martin Sikora
ccb4a396f0 test(docs-infra): test that the "suggest edit" buttons are visible where expected (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Martin Sikora
d539122466 refactor(docs-infra): refactor templates (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Martin Sikora
b89a7dd4a2 fix(docs-infra): show "suggest edits" only for /guide and /tutorial dirs (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Martin Sikora
9533cc9809 feat(docs-infra): add "suggest edits" feature to all docs (#24378)
PR Close #24378
2018-08-31 09:42:10 -07:00
Zhicheng Wang
2408128394 docs(API): 翻译 injectable 2018-08-31 18:31:27 +08:00
Zhicheng Wang
b3991897d8 docs(API): 翻译 date_pipe 2018-08-31 18:18:05 +08:00
Zhicheng Wang
3961af4fea docs(API): 翻译 NgClass 2018-08-31 16:28:42 +08:00
Zhicheng Wang
acfc14aafa docs(API): 翻译 router 2018-08-31 16:21:38 +08:00
Zhicheng Wang
4fc343f796 docs(API): 翻译 ng_module 2018-08-31 14:04:55 +08:00
Mike Giambalvo
06d04002fd fix(benchpress): Use performance.mark() instead of console.time() (#24114)
Previously, benchpress would use `console.time()` and
`console.timeEnd()` to measure the start and end of a test in the
performance log. This used to work over navigations - if you called
`console.time(id)` then navigated to a different page, calling
`console.timeEnd(id)` would still insert an event in the performance
log.

As of Chrome 65, this is no longer the case. `console.timeEnd(id)` will
simply not insert an event in the performance log unless
`console.time(id)` was called on the same page. Likewise, using
`performance.measure()` does not work if the starting mark was on a
different page.

This simple workaround uses `performance.mark()` to insert events in the
performance log at the start and end of the test. Benchpress looks for
'-bpstart' and '-bpend' in the name of the performance mark, and
normalizes that to the start and end events expected by PerflogMetric

PR Close #24114
2018-08-30 21:33:40 -07:00
Rob Wormald
6143da66b2 fix(elements): add compiler dependency (#24861)
PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
a080ffc743 fix(elements): add compiler to integration (#24861)
PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
a8210d010b fix(elements): strict null checks (#24861)
PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
c9844a2f01 feat(elements): enable Shadow DOM v1 and slots (#24861)
When using ViewEncapsulation.ShadowDom, Angular will not remove the child nodes of the DOM node a root Component is bootstrapped into. This enables developers building Angular Elements to use the `<slot>` element to do native content projection.

PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
4815b92495 test(elements): add basic integration test for angular elements (#24861)
PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
d76a7d6f7c test(core): update Web Platform feature detection (#24861)
PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
6e6489a408 ci: update firefox version to 61 (#24861)
PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
1d8e821276 ci: update chrome version to 67 (#24861)
PR Close #24861
2018-08-30 21:33:14 -07:00
Rob Wormald
6e828bba88 fix(core): do not clear element content when using shadow dom (#24861)
PR Close #24861
2018-08-30 21:33:13 -07:00
Zhicheng Wang
f7541dda47 docs(API): 修订 2018-08-31 12:23:43 +08:00
Miško Hevery
1f59f2f04d fix(core): size regression with closure compiler (#25531)
By pulling in `compiler` into `core` the `compiler` was not
100% tree-shakable and about  8KB of code was retained
when tree-shaken with closure.

PR Close #25531
2018-08-30 21:22:40 -07:00