15139 Commits

Author SHA1 Message Date
chenc
6102512a4d my -> app
上文说的是 appHighlight 这个自定义指令, 但是在下边的描述中说的是 my 前缀, 所以这边是不是应该是 my 前缀才对呢?
2019-06-07 10:05:36 +08:00
Eriice
ec37b1e7fb fixed translate 2019-06-07 10:05:12 +08:00
DD
d73409a3dd docs(forms): 修复错别字
原译文:
验证器就是一个函数,它可以处理单个 `FormControl` 好一组控件,
修改后:
验证器就是一个函数,它可以处理单个 `FormControl` 或一组控件,
2019-06-07 10:04:46 +08:00
Stefanie Fluin
383ab8515d feat(docs-infra): white background and corresponding figure updates (#28396)
PR Close #28396
2019-06-06 13:48:15 -07:00
Pawel Kozlowski
11a4454ab3 perf(ivy): remove check for function type in renderStringify (#30838)
The `renderStringify` function shows up pretty high in the CPU profiling.
Turns out that this function contained unnecessary `typeof` check for
function types - the check only makes sense / is used in error messages.

The PR also alligns how ivy and view engine stringify functions used in
interpolations.

PR Close #30838
2019-06-06 13:47:41 -07:00
crisbeto
04587a33c5 fix(ivy): DebugNode.attributes not preserving attribute name casing (#30864)
In Ivy the `DebugNode.attributes` is populated directly from the DOM, but the problem is that the browser will lowercase all attribute names. These changes preserve the case by first going through the `TNode.attrs`, populating the map with the case-sensitive names and saving a reference to the lower case name. Afterwards when we're going through the attributes from the DOM, we can check whether we've mapped the attribute by its case-sensitive name already.

This PR resolves FW-1358.

PR Close #30864
2019-06-06 13:47:16 -07:00
Olivier Combe
b4b7af86c2 fix(ivy): trigger directive inputs for each template creation (#30870)
A directive input that doesn't use a binding is triggered during the creation phase. But this was only executed at the first template pass, and not on subsequent ones.
Now only the creation of the update instruction is executed on the first template pass, anything else is executed every time a template is created.

FW-1361 #resolve
PR Close #30870
2019-06-06 13:46:40 -07:00
Pete Bacon Darwin
f440bd1793 build(docs-infra): fix CLI command github links (#30889)
The "view" links were broken because the version used to
compute the git tag for the GitHub URL included a build SHA.
Now we clean that off before using it in the URL.

The links are to the JSON schema that defines the documentation for
the command. This is accurate but confusing because the content for the
long description is stored in a separate markdown file referenced from this
schema file.
This commit adds a second set of links for the long description, if it exists,
which links directly to the markdown file.

Closes #30700

PR Close #30889
2019-06-06 08:49:37 -07:00
Zhicheng WANG
b046dfdb6e fix: API 合并错误
fix: 暂时撤销对 HttpClient 的翻译,它的改动太大了
2019-06-06 21:38:21 +08:00
Zhicheng WANG
3e0ef413a8 fix: 错误的合并顺序 2019-06-06 20:53:13 +08:00
Zhicheng WANG
845475005c fix: 解决 prerender 在 ci 上的 bug 2019-06-06 14:32:50 +08:00
Ben Lesh
3859bcc70c refactor(ivy): remove ɵɵelementAttribute instruction (#30640)
PR Close #30640
2019-06-05 21:29:38 -07:00
Olivier Combe
30efb6b8ea fix(ivy): don't project removed placeholders with runtime i18n (#30783)
When translated content was projected, all of the content was reappended, even the placeholders that had been removed in the translation.
To avoid that we added a new flag on `TNode` that specifies that a node is detached, in which case it should be ignored by the projection.

FW-1319 #resolve
PR Close #30783
2019-06-05 21:28:39 -07:00
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