Zhicheng Wang
9f7ff05165
fix: merge the cli-quickstart from history
2017-08-03 15:47:54 +08:00
Zhicheng Wang
8f950c26f2
fix: change v2's link to v2.angular.cn
2017-08-03 15:30:35 +08:00
Kara
333a708bb6
feat(forms): add updateOn blur option to FormControls ( #18408 )
...
By default, the value and validation status of a `FormControl` updates
whenever its value changes. If an application has heavy validation
requirements, updating on every text change can sometimes be too expensive.
This commit introduces a new option that improves performance by delaying
form control updates until the "blur" event. To use it, set the `updateOn`
option to `blur` when instantiating the `FormControl`.
```ts
// example without validators
const c = new FormControl(, { updateOn: blur });
// example with validators
const c= new FormControl(, {
validators: Validators.required,
updateOn: blur
});
```
Like in AngularJS, setting `updateOn` to `blur` will delay the update of
the value as well as the validation status. Updating value and validity
together keeps the system easy to reason about, as the two will always be
in sync. It's also worth noting that the value/validation pipeline does
still run when the form is initialized (in order to support initial values).
Closes #7113
2017-08-02 18:10:10 -07:00
Chuck Jazdzewski
3a227a1f6f
refactor(router): compile router cleanly with TypeScript 2.4 ( #18465 )
2017-08-02 17:32:02 -07:00
Jan Peer Stöcklmair
81cb5bc3a7
docs(router): fix typo ( #18479 )
2017-08-02 17:31:09 -07:00
Chuck Jazdzewski
1640d2aa0b
refactor(platform-browser): compiler platform-browser packages cleanly ( #18464 )
2017-08-02 16:30:50 -07:00
Chuck Jazdzewski
5f501c722b
refactor(forms): compile forms cleanly with TypeScript 2.4 ( #18462 )
2017-08-02 16:29:31 -07:00
Chuck Jazdzewski
ea07856cc5
refactor(upgrade): compile upgrade cleanly with TypeScript 2.4 ( #18461 )
2017-08-02 16:28:04 -07:00
Chuck Jazdzewski
7c47b62a96
fix(compiler): cleanly compile with TypeScript 2.4 ( #18456 )
2017-08-02 16:26:42 -07:00
Chuck Jazdzewski
e25b3dd163
fix(benchpress): compile cleanly with TS 2.4 ( #18455 )
2017-08-02 16:24:00 -07:00
Marc Laval
6a88659c9a
test(upgrade): fix an IE9 timer issue in downgrade module tests ( #18482 )
2017-08-02 16:09:38 -07:00
George Kalpakas
44ae6e94e3
fix(aio): fix layout of the webpack guide ( #18493 )
...
This is possibly a temporary fix for the layout, until we decide whether we want
to remove the guide or properly add it to the SideNav menu.
Fixes #17912
2017-08-02 16:00:36 -07:00
tinayuangao
1635a06bda
ci(aio): Add commit message to payload data ( #18137 )
2017-08-02 15:59:20 -07:00
David Brooks
3923c30df0
docs(aio): fix missing anchor-open in i18n documentation ( #18476 )
...
The Internationalisation documentation, "Translate text nodes" section, has an incomplete
markdown anchor, and leaks markdown into the page. Fix the anchor by adding the opening bracket.
2017-08-02 15:56:01 -07:00
George Kalpakas
99017bf3ff
fix(aio): correctly redirect cookbook/a1-a2-quick-reference.html
( #18418 )
...
Fixes #18415
2017-08-02 15:54:22 -07:00
Marc Laval
4d117faf1a
test(common): skip some DatePipe tests in old Chrome where Intl is buggy ( #15784 )
2017-08-02 15:51:59 -07:00
Øystein Lygre
5cc9913ded
docs(aio): replace old blog link in footer ( #18448 )
...
Fixes #18233
2017-08-02 15:45:54 -07:00
Filipe Silva
1d09838622
ci: remove chromium fold reference ( #18445 )
2017-08-02 15:43:26 -07:00
Filipe Silva
9adf40aa77
build(aio): use cli 1.3.0-rc ( #18290 )
2017-08-02 15:37:03 -07:00
Igor Minar
89c616199f
docs: improve github labels by introducing "PR target" labels ( #18436 )
...
I also renamed all "pr_*" lables to "PR *" lables, removed obsolete
"chore" label, and added docs label.
2017-08-02 15:30:36 -07:00
Alex Rickabaugh
1e1af7ffcb
docs: changelog for 5.0.0-beta.2 release
2017-08-02 13:23:27 -07:00
Alex Rickabaugh
a84b2bc945
release: cut the 5.0.0-beta.2 release
2017-08-02 13:21:07 -07:00
Alex Rickabaugh
7abcb99d57
docs: add changelog for 4.3.3
2017-08-02 13:19:00 -07:00
Jason Aden
49cd8513e4
feat(router): add events tracking activation of individual routes
...
* Adds `ChildActivationStart` and `ChildActivationEnd`
* Adds test to verify the PreActivation phase of routing
2017-08-01 10:44:00 -07:00
Jason Aden
82b067fc40
build: ignore node_modules for tslint
2017-08-01 10:13:44 -07:00
Zhicheng Wang
2a0c436347
fix: translate more
...
fix: a NPE
2017-08-01 13:05:28 +08:00
Victor Berchet
9479a106bb
build: enable TSLint on the packages folder
2017-07-31 15:47:57 -07:00
Chuck Jazdzewski
e64b54b67b
fix(compiler): do not consider arguments when determining recursion
...
The static reflectory check for macro function recursion was too
agressive and disallowed calling a function with argument that also
calls the same function. For example, it disallowed nested animation
groups.
Fixes : #17467
2017-07-31 13:42:31 -07:00
Georgios Kalpakas
cc2a4c41f9
build(aio): fix warning about missing <h1>
...
Fixes #17549
2017-07-31 13:40:07 -07:00
chumtoadafuq
a11542a375
docs(aio): fixed list format in FormArray section
2017-07-31 11:31:05 -07:00
Chuck Jazdzewski
b6c4af6495
feat(compiler-cli): automatically lower lambda expressions in metadata
2017-07-31 11:30:44 -07:00
Chuck Jazdzewski
67dff7bd5d
feat(tsc-wrapped): allow values to be substituted by collector clients
...
Also reenabled tests that were unintentionally disabled when they were
moved from tools/@angular.
2017-07-31 11:30:44 -07:00
Victor Berchet
381471d338
fix(compiler): fix for element needing implicit parent placed in top-level ng-container
...
fixes #18314
2017-07-31 11:30:19 -07:00
Kara Erickson
ebef5e697a
feat(forms): add options arg to abstract controls
...
FormControls, FormGroups, and FormArrays now optionally accept an options
object as their second argument. Validators and async validators can be
passed in as part of this options object (though they can still be passed
in as the second and third arg as before).
```ts
const c = new FormControl(, {
validators: [Validators.required],
asyncValidators: [myAsyncValidator]
});
```
This commit also adds support for passing arrays of validators and async
validators to FormGroups and FormArrays, which formerly only accepted
individual functions.
```ts
const g = new FormGroup({
one: new FormControl()
}, [myPasswordValidator, myOtherValidator]);
```
This change paves the way for adding more options to AbstractControls,
such as more fine-grained control of validation timing.
2017-07-31 11:29:32 -07:00
Zhicheng Wang
92a739099d
fix: a NPE
2017-07-31 09:29:32 +08:00
Zhicheng Wang
b17f64b14d
fix: a missing anchor link
2017-07-31 08:48:00 +08:00
Zhicheng Wang
6d88fa2342
fix: all "back to top" links
2017-07-30 22:18:19 +08:00
Zhicheng Wang
bbe6ac9014
clean: remove unused files
2017-07-30 17:49:45 +08:00
Zhicheng Wang
1ec5c6a82f
fix: minor improvements
2017-07-30 17:40:53 +08:00
Zhicheng Wang
4a4b009662
fix: typo
2017-07-30 17:13:46 +08:00
Zhicheng Wang
02b79f900f
fix: minor improvement
2017-07-30 17:04:14 +08:00
Zhicheng Wang
f2a9db82c0
fix: translate more content
2017-07-30 16:52:20 +08:00
Zhicheng Wang
855dc19bdd
fix: replace gaId with angular.cn's
2017-07-30 16:23:40 +08:00
Zhicheng Wang
f7b656443d
fix: limit tagName to whole world
2017-07-30 16:23:26 +08:00
Zhicheng Wang
2c9e783817
fix: translate homepage.
2017-07-30 14:29:26 +08:00
Zhicheng Wang
3fe722490a
fix: don't hide translation-origin if there is not translation-result
...
fix: translate more.
2017-07-30 14:10:08 +08:00
Zhicheng Wang
747ea2a287
fix: retranslate navigation
2017-07-30 13:35:27 +08:00
Zhicheng Wang
828528dade
fix: "覆盖" -> "涵盖"
2017-07-30 12:43:20 +08:00
Zhicheng Wang
c002fddabe
fix: many of broken links
2017-07-30 12:32:56 +08:00
Zhicheng Wang
f2059b445c
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.md
# aio/content/guide/attribute-directives.md
# aio/content/guide/bootstrapping.md
# aio/content/guide/browser-support.md
# aio/content/guide/cb-index.md
# aio/content/guide/change-log.md
# aio/content/guide/cheatsheet.md
# aio/content/guide/cli-quickstart.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.md
# aio/content/guide/deployment.md
# aio/content/guide/displaying-data.md
# aio/content/guide/dynamic-component-loader.md
# aio/content/guide/dynamic-form.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/index.md
# aio/content/guide/learning-angular.md
# aio/content/guide/lifecycle-hooks.md
# aio/content/guide/ngmodule-faq.md
# aio/content/guide/ngmodule.md
# aio/content/guide/npm-packages.md
# aio/content/guide/pipes.md
# aio/content/guide/quickstart.md
# aio/content/guide/reactive-forms.md
# aio/content/guide/router.md
# aio/content/guide/security.md
# aio/content/guide/server-communication.md
# aio/content/guide/set-document-title.md
# aio/content/guide/setup-systemjs-anatomy.md
# aio/content/guide/setup.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/ts-to-js.md
# aio/content/guide/typescript-configuration.md
# aio/content/guide/upgrade.md
# aio/content/guide/user-input.md
# aio/content/guide/visual-studio-2015.md
# aio/content/guide/webpack.md
# aio/content/navigation.json
# aio/content/tutorial/index.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/package.json
# aio/src/styles/main.scss
# aio/transforms/angular.io-package/index.js
2017-07-30 00:09:50 +08:00