10613 Commits

Author SHA1 Message Date
Zhicheng Wang
45a14d1cc0 fix: 翻译了 toh-pt0 ~ toh-pt4 2018-03-08 17:07:55 +08:00
Zhicheng Wang
09d93793ff fix: 翻译了 应用的壳 一章 2018-03-08 13:09:40 +08:00
Kara Erickson
4c089c1d93 feat(ivy): support ChangeDetectorRef.detectChanges (#22614)
PR Close #22614
2018-03-07 21:08:25 -08:00
Kara Erickson
d485346d3c fix(ivy): lifecycle hooks should be queued for root component (#22614)
PR Close #22614
2018-03-07 21:08:25 -08:00
Alex Eagle
8407fcc979 ci: double our cores on CircleCI (#22641)
This should cut our build time in ~half, assuming it's widely parallel.
See
https://circleci.com/docs/2.0/configuration-reference/#resource_class

Also enable bazel repository caching, and store the external
repositories in the CircleCI cache for later builds.

PR Close #22641
2018-03-07 21:00:03 -08:00
Marc Laval
f64ee15487 feat(ivy): implement pipes (#22254)
PR Close #22254
2018-03-07 20:58:48 -08:00
Marc Laval
5d4fa7f0c8 test(ivy): add canonical examples of bindings on elements (#22403)
PR Close #22403
2018-03-07 20:55:49 -08:00
Zhicheng Wang
d24f7c74f2 fix: 一级标题没有隐藏原始标题
fix: 中文标题的 id 应该只按照英文版生成,英文内容不再设置 id
2018-03-08 12:47:55 +08:00
Kara Erickson
8fb34bcd43 refactor(forms): deprecate ngModel usage on same field as formControl (#22633)
Support for using the `ngModel` input property and `ngModelChange`
event with reactive form directives has been deprecated in
Angular v6 and will be removed in Angular v7.

Now deprecated:
```html
<input [formControl]="control" [(ngModel)]="value">
```

```ts
this.value = 'some value';
```

This has been deprecated for a few reasons. First, developers have
found this pattern confusing. It seems like the actual `ngModel`
directive is being used, but in fact it's an input/output property
named `ngModel` on the reactive form directive that simply approximates
(some of) its behavior. Specifically, it allows getting/setting the
value and intercepting value events. However, some of `ngModel`'s other
features - like delaying updates with`ngModelOptions` or exporting the
directive - simply don't work, which has understandably caused some
confusion.

In addition, this pattern mixes template-driven and reactive forms
strategies, which we generally don't recommend because it doesn't take
advantage of the full benefits of either strategy. Setting the value in
the template violates the template-agnostic principles behind reactive
forms, whereas adding a FormControl/FormGroup layer in the class removes
the convenience of defining forms in the template.

To update your code before v7, you'll want to decide whether to stick
with reactive form directives (and get/set values using reactive forms
patterns) or switch over to template-driven directives.

After (choice 1 - use reactive forms):

```html
<input [formControl]="control">
```

```ts
this.control.setValue('some value');
```

After (choice 2 - use template-driven forms):

```html
<input [(ngModel)]="value">
```

```ts
this.value = 'some value';
```

You can also choose to silence this warning by providing a config for
`ReactiveFormsModule` at import time:

```ts
imports: [
  ReactiveFormsModule.withConfig({warnOnNgModelWithFormControl: 'never'});
]
```

Alternatively, you can choose to surface a separate warning for each
instance of this pattern with a config value of `"always"`. This may
help to track down where in the code the pattern is being used as the
code is being updated.

Note: `warnOnNgModelWithFormControl` is set up as deprecated so that it
can be removed in v7 when it is no longer needed. This will not display
properly in API docs yet because dgeni doesn't yet support deprecating
properties in object literals, but we have an open issue to resolve the
discrepancy here: https://github.com/angular/angular/issues/22640.

PR Close #22633
2018-03-07 20:47:53 -08:00
Miško Hevery
6d1367d297 feat(ivy): provide sanitization methods which can be tree shaken (#22540)
By providing a top level sanitization methods (rather than service) the
compiler can generate calls into the methods only when needed. This makes
the methods tree shakable.

PR Close #22540
2018-03-07 18:24:07 -08:00
Miško Hevery
538f1d980f refactor(core): move sanitization into core (#22540)
This is in preparation of having Ivy have sanitization inline.

PR Close #22540
2018-03-07 18:24:06 -08:00
Kapunahele Wong
065bcc5aad docs: add HeroService to code tabs and fix headers (#22373)
PR Close #22373
2018-03-07 18:20:53 -08:00
Zhicheng Wang
8af121ee8f 翻译文档首页 2018-03-08 09:28:04 +08:00
Zhicheng Wang
c29aee6729 fix: 重新合并 doc-viewer 中的翻译代码(未包含标题翻译) 2018-03-08 09:08:04 +08:00
Alex Eagle
8ad4ae0a07 docs: add changelog for 6.0.0-beta.7 2018-03-07 14:59:33 -08:00
Alex Eagle
ffc6ee0086 release: cut the 6.0.0-beta.7 release 2018-03-07 14:57:04 -08:00
Olivier Combe
78167915ee build(common): export locale data as commonjs instead of es2015 (#20624)
PR Close #20624
2018-03-07 14:33:45 -08:00
Alex Eagle
ad8fb8484f test: include router in public_api_guard tests (#22628)
Remove duplicate public api testing from the gulp task.

PR Close #22628
2018-03-07 10:56:27 -08:00
Alex Eagle
ce649f725f build: add a ng_package rule for @angular/router (#22628)
PR Close #22628
2018-03-07 10:56:27 -08:00
Alex Eagle
fcb8c492d6 build: add an npm_package rule for @angular/bazel (#22628)
PR Close #22628
2018-03-07 10:56:27 -08:00
Igor Minar
4f744cc66f docs: update RELEASE_SCHEDULE.md by pushing out v6 rc by one week
We are pushing RC and Final out by one week because of RxJS v6 complications that are blocking the release. No further delays are currently expected.
2018-03-07 10:50:55 -08:00
Zhicheng Wang
0f8d7fd8ce temp: revert to english version, will re-merge it 2018-03-07 16:54:42 +08:00
Zhicheng Wang
b7ceb9e211 fix: 修正了死链接 2018-03-07 16:48:44 +08:00
Zhicheng Wang
8f74eecc96 fix: 更新字典 2018-03-07 16:16:33 +08:00
Zhicheng Wang
3136cc77ad fix: 把所有 plunker 替换为 Stackblitz 2018-03-07 16:15:21 +08:00
Zhicheng Wang
f906fa5b29 fix: 翻译合并完毕,去掉以前版本的字典,只使用上一版 2018-03-07 15:55:33 +08:00
Zhicheng Wang
20d593d067 fix: 修正残留错误 2018-03-07 15:48:58 +08:00
Zhicheng Wang
964266f4b0 fix: 合并第一版的翻译 2018-03-07 15:42:49 +08:00
Zhicheng Wang
fc58e0eee0 fix: 合并第二版的翻译 2018-03-07 14:54:27 +08:00
Zhicheng Wang
ba33ee016a fix: 修正第一版和第二版的字典
fix: 修正原文过滤逻辑
2018-03-07 14:19:47 +08:00
Zhicheng Wang
c618678281 fix: 人工修订自动翻译
fix: 标准化原文中的异常语句
2018-03-07 13:29:22 +08:00
Zhicheng Wang
73eb2d2d73 fix: 拆解单行的 td/th 2018-03-07 13:09:36 +08:00
Zhicheng Wang
77c2e039f6 fix: 人工修订自动翻译
fix: 只忽略 <div class="alert 元素
2018-03-07 12:57:17 +08:00
Zhicheng Wang
a94e7cba14 fix: 人工修订自动翻译
fix: 拆解 tr
fix: 特殊拆解 back to top
2018-03-07 12:45:12 +08:00
Zhicheng Wang
9adeb14f3a fix: 人工修订自动翻译 2018-03-07 12:26:05 +08:00
Zhicheng Wang
abb1f1321b fix: a 不再自动换行
fix: 修正自动翻译结果
2018-03-07 11:28:22 +08:00
Zhicheng Wang
0e0ffa481e fix: 修正自动翻译结果 2018-03-07 11:25:56 +08:00
Zhicheng Wang
38af562aff fix: 对 section 和 code-tabs 换行 2018-03-07 11:25:41 +08:00
Zhicheng Wang
51bd598826 fix: 修正自动翻译结果 2018-03-07 10:55:42 +08:00
Zhicheng Wang
d7d3589052 fix: 修正匹配#标题的正则表达式 2018-03-07 10:47:14 +08:00
Zhicheng Wang
076cd7940b fix: 全面改用环视进行匹配,以免“吃掉”回车,影响下一个匹配
fix: html 标签中的属性匹配允许空格
2018-03-07 10:43:12 +08:00
Zhicheng Wang
1c028aee24 fix: 提交没错误的自动翻译结果 2018-03-07 10:20:29 +08:00
Zhicheng Wang
43e7e9fe8c fix: 为单行拆解成多行结果增加缩进 2018-03-07 10:13:16 +08:00
Zhicheng Wang
400a6d0b8e fix: 在正文首尾添加换行,以便统一处理
fix: 拆解 li
2018-03-07 10:08:37 +08:00
Zhicheng Wang
4c6b614064 fix: 拆解单行 li 2018-03-07 09:33:42 +08:00
Zhicheng Wang
4c10eb42b5 fix: 拆解单行 br 2018-03-07 09:29:06 +08:00
Zhicheng Wang
8dcffab9c8 fix: 拆解 div 2018-03-07 09:21:16 +08:00
Zhicheng Wang
16bd6edca0 fix: 错误的忽略了单行的 a 标签 2018-03-07 09:08:44 +08:00
Zhicheng Wang
151d8824ee fix: 忽略更多字符 2018-03-07 08:48:31 +08:00
Zhicheng Wang
4ddf7348a4 fix: 解决其他元素的拆解问题 2018-03-07 08:42:26 +08:00