17376 Commits

Author SHA1 Message Date
Jeremy Elbourn
05a43ca869 fix(bazel): exclude components schematics from build (#30825)
See https://github.com/angular/components/issues/16189

Without this, bazel attempts to build schematics templates as srcs

PR Close #30825
2019-06-05 21:27:46 -07:00
crisbeto
b51d8dd438 fix(ivy): error for empty bindings on ng-template (#30829)
Fixes Ivy throwing an error if it runs into an empty property binding on an `ng-template` (e.g. `<ng-template [something]=""></ng-template>`) by not generating an update instruction for it.

Fixes #30801.
This PR resoves FW-1356.

PR Close #30829
2019-06-05 21:26:13 -07:00
George Kalpakas
ea2d453118 fix(ivy): ngcc - use spaces in overwritten package.json content for readability (#30831)
When ngcc processes an entrypoint, it updates `package.json` with
metadata about the processed format. Previously, it overwrote the
`package.json` with the stringified JSON object without spaces. This
made the file difficult to read (for example when looking at the file
while debugging an ngcc failure).

This commit fixes it by using spaces in the new `package.json` content.

PR Close #30831
2019-06-05 21:22:49 -07:00
Keen Yee Liau
17bfedd224 fix(bazel): Load global stylesheet in dev and prod (#30879)
Global stylesheet should be injected as a <link> tag in index.html for
both dev and prod app.

PR Close #30879
2019-06-05 21:20:58 -07:00
Zhicheng WANG
c070126692 fix: 添加类型定义,避免编译错误 2019-06-06 09:05:27 +08:00
Zhicheng WANG
febaccf780 fix: 细修
fix: 避免不必要的冲突
2019-06-06 08:23:40 +08:00
Zhicheng WANG
28b0698600 fix: 细修 2019-06-06 08:03:18 +08:00
Zhicheng WANG
d5c6f7ca1b fix: 翻译完 deployment 2019-06-06 07:50:06 +08:00
Miško Hevery
540b01402f release: cut the v8.1.0-next.1 release 2019-06-05 12:27:26 -07:00
Paul Gschwendtner
8852b793df build: unable to run build-packages-dist script on windows (#30853)
Currently it's not possible to run the `./scripts/build-packages-dist.sh` script on Windows because
`bazel query` returns CRLF line-endings which result on array expansion in Bazel target names
that end with a carriage return (e.g. `//packages/core\r`). This then results in a build failure where
Bazel complains that target names should not end with a carriage return.

In order to fix this, we just strip off the carriage return line-endings from the bazel query stdout. Ideally
the script will be ported to a plain Node script eventually, but for now it prevents Windows users from
building the release packages and the simple workaround seems reasonable and sufficient.

PR Close #30853
2019-06-05 09:05:28 -07:00
Ben Lesh
d1df0a94d4 refactor(ivy): remove ɵɵelementProperty instruction (#30645)
- Removes ɵɵelementProperty instruction
- Updates tests that were using it
- NOTE: There is one test under `render3/integration_spec.ts` that is commented out, and needs to be reviewed. Basically, I could not find a good why to test what it was doing, because it was doing things that I am not sure we could generate in an acceptance test.

PR Close #30645
2019-06-05 09:04:43 -07:00
Olivier Combe
00cc905b98 feat(ivy): support ng-content in runtime i18n translations (#30782)
Added a new syntax for projections (`¤` will represent `ng-content` nodes) so that we can treat them specifically.
When we enter an i18n block with the instruction `i18nStart`, a new `delayProjection` variable is set to true to prevent the instruction `projection` from projecting the nodes. Once we reach the `i18nEnd` instruction and encounter a projection in the translation we will project its nodes.
If a projection was removed from a translation, then its nodes won't be projected at all.
The variable `delayProjection` is restored to `false` at the end of `i18nEnd` so that it doesn't stop projections outside of i18n blocks.

FW-1261 #resolve
PR Close #30782
2019-06-05 09:04:13 -07:00
Zhicheng WANG
55613601c2 fix: 翻译 forms 2019-06-06 00:03:43 +08:00
Alex Eagle
337b6fe003 build: remove unreferenced tsconfig-build.json files (#30858)
These are no longer needed since Bazel generates a tsconfig for each compilation

PR Close #30858
2019-06-05 09:03:36 -07:00
Zhicheng WANG
dc761e148d fix: 翻译 data 2019-06-05 23:52:25 +08:00
Zhicheng WANG
b6d8478658 fix: 翻译 routing 2019-06-05 23:13:20 +08:00
Zhicheng WANG
597d5a43a4 fix: 翻译 Angular 入门索引页 2019-06-05 22:50:16 +08:00
Zhicheng WANG
55aaaa5e57 fix: 您替换成你 2019-06-05 21:07:54 +08:00
Zhicheng WANG
6afb87bc7a fix: 翻译 schematics 2019-06-05 20:56:39 +08:00
Zhicheng WANG
cdd1148601 fix: 翻译原理图 2019-06-05 17:15:33 +08:00
Zhicheng WANG
c9265ef726 fix: 修正标题 2019-06-05 16:17:58 +08:00
Zhicheng WANG
267c822960 fix: 翻译 Web Worker 2019-06-05 16:17:03 +08:00
Zhicheng WANG
a670a275fd fix: 翻译 ivy 2019-06-05 16:04:14 +08:00
Zhicheng WANG
e64003ee93 fix: 翻译使用情况收集 2019-06-05 15:50:22 +08:00
Zhicheng WANG
3d763e71a0 fix: 翻译 deprecations 2019-06-05 15:39:00 +08:00
Zhicheng WANG
694c563fa2 fix: 翻译 bazel 2019-06-05 14:55:18 +08:00
Zhicheng WANG
0895bcef8b fix: 翻译 app-shell 2019-06-05 14:07:45 +08:00
Zhicheng WANG
0dee068b00 fix: 纠错 2019-06-05 13:58:31 +08:00
Zhicheng WANG
f839fd6031 fix: 无效链接 2019-06-05 08:47:35 +08:00
Zhicheng WANG
321728f132 fix: navigation.json 格式错误 2019-06-05 08:06:32 +08:00
Zhicheng WANG
56b0a3148c fix: 更新了 yarn.lock 2019-06-05 07:50:02 +08:00
Zhicheng WANG
b813974ef6 fix: 修订了部分 API 文档 2019-06-05 07:43:23 +08:00
Lars Gyrup Brink Nielsen
ef4a15bc0b docs: correct typos and formatting in the Getting Started guide (#30758)
PR Close #30758
2019-06-04 13:37:27 -07:00
Olivier Combe
0d4f8c7dd9 fix(ivy): allow empty cases for ICU expressions (#30846)
We used to ignore empty strings for optimization purposes, but it turns out that empty strings are also valid values for ICU cases and we shouldn't ignore those.

FW-1290 #resolve
PR Close #30846
2019-06-04 13:36:28 -07:00
George Kalpakas
b74df20c2a docs(service-worker): mention that HTTPS is required, unless on localhost (#30847)
Fixes #30823

PR Close #30847
2019-06-04 12:03:11 -07:00
Bowen Ni
4ecff42e7f refactor: Move away from index signature based "updateCache". (#30518)
We're deprecating the index signature overloads in favor of using a Map.

PR Close #30518
2019-06-04 12:02:13 -07:00
Miško Hevery
55a14e4866 feat(ivy): in ngDevMode use named object literals and arrays for easier debugging/profiling (#30542)
PR Close #30542
2019-06-04 12:01:46 -07:00
Miško Hevery
c7850fff3b refactor(ivy): rename debug.ts to lview_debug.ts (#30542)
PR Close #30542
2019-06-04 12:01:46 -07:00
JoostK
456f2e70af fix(ivy): type checking - handle $implicit ng-template variables (#30675)
When an `ng-template` element has a variable declaration without a value,
it is assigned the value of the `$implicit` property in the embedded view's
context. The template compiler inserts a property access to `$implicit` for
template variables without a value, however the type-check code generation
logic did not. This resulted in incorrect type-checking code being generated.

Fixes FW-1326

PR Close #30675
2019-06-04 12:01:18 -07:00
JoostK
4da5e9a156 fix(ivy): type checking - apply attribute to property name mapping (#30675)
Some HTML attributes don't correspond to their DOM property name, in which
case the runtime will apply the appropriate transformation when assigning
a property using its attribute name. One example of this is the `for`
attribute, for which the DOM property is named `htmlFor`.

The type-checking machinery in ngtsc must also take this mapping into
account, as it generates type-check code in which unclaimed property bindings
are assigned to properties of (subtypes of) `HTMLElement`.

Fixes #30607
Fixes FW-1327

PR Close #30675
2019-06-04 12:01:18 -07:00
Brandon
812c231b0c docs: update example dependencies to 8.x release (#30755)
PR Close #30755
2019-06-04 11:53:55 -07:00
Pandiyan Murugan
3ed7463ad7 docs: rename component for constructor example (#30845)
PR Close #30845
2019-06-04 11:52:57 -07:00
Zhicheng WANG
9d1a89a77f fix: 修订完了所有文档 2019-06-04 22:02:31 +08:00
Zhicheng WANG
df222c3a12 fix: 修订完了 guide 部分 2019-06-04 21:48:02 +08:00
Zhicheng WANG
4ac2511634 fix: 修订了一部分翻译 2019-06-04 19:00:20 +08:00
Zhicheng WANG
2f6b90a5fa fix: 翻译了差异化加载部分 2019-06-04 17:42:32 +08:00
Pawel Kozlowski
8154433130 perf(ivy): limit allocation of LQueries_ objects (#30664)
Before this change we would systematically call LQueries.clone() when executting
elementStart / elementContainerStart instructions. This was often unnecessary as
LQueries can be mutated under 2 conditions only:
- we are crossing an element that has directives with content queries
  (new queries must be added);
- we are descending into element hierarchy (creating a child element of an existing element)
  and the current LQueries object is tracking shallow queries (shallow queries are removed).

With this PR LQueires.clone() is only done when needed and this gratelly reduces number
of LQueries object created: in the "expanding rows" benchmark number of allocated
(and often GCed just after!) LQueries is reduced from ~100k -> ~35k. This represents
over 1MB of memory that is not allocated.

PR Close #30664
2019-06-03 12:01:35 -07:00
Sergey Volynkin
07cd65b5ec docs: fix quickstart link in readme (#30807)
PR Close #30807
2019-06-03 11:43:58 -07:00
Bruno João
cd6fc8bf06 docs: document UrlTree in guard return type in cheatsheet (#30822)
Add UrlTree to the types of returned values in guard methods

PR Close #30822
2019-06-03 11:43:25 -07:00
Misko Hevery
fcdd784667 refactor(core): cleanup code with side-effects which was preventing tree-shaking (#30580)
PR Close #30580
2019-06-03 09:01:51 -07:00