8457 Commits

Author SHA1 Message Date
Georgios Kalpakas
06faac8b5c fix(aio): skip PWA test when redeploying non-public commit 2017-08-10 15:59:00 -07:00
Georgios Kalpakas
4d523fda98 fix(aio): fix compilation error by using the correct type for providers 2017-08-10 15:57:19 -07:00
Victor Berchet
cea02414b0 docs: add changelog for 5.0.0-beta.3 2017-08-09 16:07:37 -07:00
Victor Berchet
f0ec31e47f release: cut the 5.0.0-beta.3 release 2017-08-09 16:04:57 -07:00
Kara
ff5c58be6b feat(forms): add default updateOn values for groups and arrays (#18536)
This commit adds support for setting default `updateOn` values
in `FormGroups` and `FormArrays`. If you set `updateOn` to
’blur’` at the group level, all child controls will default to `’blur’`,
unless the child has explicitly specified a different `updateOn` value.

```
const c = new FormGroup({
   one: new FormControl()
}, {updateOn: blur});
```

 It's worth noting that parent groups will always update their value and
validity immediately upon value/validity updates from children. In other
words, if a group is set to update on blur and its children are individually
set to update on change, the group will still update on change with its
children; its default value will simply not be used.
2017-08-09 15:41:53 -07:00
Trotyl
dca50deae4 docs(core): deprecate ReflectiveInjector
closes #18598
2017-08-09 14:44:49 -07:00
George Kalpakas
7f2037f0b6 test(aio): fix running docs examples against local builds (#18520)
This commit also updates the version of `@angular/cli` used for docs examples.
The previous (transient) dependency `@ngtools/webpack` was not compatible with
`@angular/compiler-cli@>=5` and was breaking when running against the local
builds (currently at 5.0.0-beta.2). The version of `@ngtools/webpack` used by
the latest `@angular/cli` version is compatible with `@angular/compiler-cli@5`.
2017-08-09 14:21:10 -07:00
George Kalpakas
fd6ae571b8 fix(aio): add missing code snippet (#18547)
The snippet got lost some time during the migration from the old version (it is
[present in v2][1]).

[1]: https://v2.angular.io/docs/ts/latest/cookbook/aot-compiler.html#!#running-the-application

Fixes #18544
2017-08-09 14:20:25 -07:00
Georgios Kalpakas
b14250bef9 test(aio): fix the deploy-to-firebase tests
This commit also ensures that if the tests fail, the script exits with an error.
2017-08-09 14:18:33 -07:00
Georgios Kalpakas
6fb5250185 ci(aio): fix deploying the stable branch to Firebase
The `deploy-to-firebase.sh` always expects there to be a
`src/extra-files/<mode>` directory and breaks if it doesn't exist.
2017-08-09 14:18:33 -07:00
Marc Laval
2f9d8ff46d test(animations): disable buggy test in Chrome 39 (#18483)
Fixes #15793
2017-08-09 14:15:40 -07:00
Marc Laval
e54bd59f22 fix(core): forbid destroyed views to be inserted or moved in VC (#18568)
Fixes #17780
2017-08-09 14:11:51 -07:00
George Kalpakas
1e1833198d ci(aio): fix deploying to firebase (#18590) 2017-08-08 13:59:25 -07:00
Chuck Jazdzewski
6f2038cc85 fix(compiler-cli): fix and re-enble expression lowering (#18570)
Fixes issue uncovered by #18388 and re-enables expression
lowering disabled by #18513.
2017-08-08 12:40:08 -07:00
Victor Berchet
f0a55016af fix(core): fix platform-browser-dynamic (#18576)
follow-up for #18496
2017-08-08 11:41:12 -07:00
Zhicheng Wang
a70679fb5a fix: "toggle origin" can not apply to the children of translation result
refactor: extract to standalone functions
2017-08-08 21:29:23 +08:00
Zhicheng Wang
ace9bf9ace fix: minor issue 2017-08-08 13:32:04 +08:00
Zhicheng Wang
aeaa3bdefa fix: translate more 2017-08-08 13:18:51 +08:00
Zhicheng Wang
a6df16f891 Merge branch 'master' into aio
# Conflicts:
#	aio/content/guide/form-validation.md
#	aio/content/guide/i18n.md
#	aio/content/guide/reactive-forms.md
#	aio/content/marketing/index.html
#	aio/content/navigation.json
#	aio/src/environments/environment.stable.ts
2017-08-08 13:10:17 +08:00
Miško Hevery
fcadbf4bf6 perf: switch angular to use StaticInjector instead of ReflectiveInjector
This change allows ReflectiveInjector to be tree shaken resulting
in not needed Reflect polyfil and smaller bundles.

Code savings for HelloWorld using Closure:

Reflective: bundle.js:  105,864(34,190 gzip)
    Static: bundle.js:  154,889(33,555 gzip)
                            645( 2%)

BREAKING CHANGE:

`platformXXXX()` no longer accepts providers which depend on reflection.
Specifically the method signature when from `Provider[]` to
`StaticProvider[]`.

Example:
Before:
```
[
  MyClass,
  {provide: ClassA, useClass: SubClassA}
]

```

After:
```
[
  {provide: MyClass, deps: [Dep1,...]},
  {provide: ClassA, useClass: SubClassA, deps: [Dep1,...]}
]
```

NOTE: This only applies to platform creation and providers for the JIT
compiler. It does not apply to `@Compotent` or `@NgModule` provides
declarations.

Benchpress note: Previously Benchpress also supported reflective
provides, which now require static providers.

DEPRECATION:

- `ReflectiveInjector` is now deprecated as it will be remove. Use
  `Injector.create` as a replacement.

closes #18496
2017-08-07 15:42:34 -07:00
Miško Hevery
d9d00bd9b5 feat(core): Create StaticInjector which does not depend on Reflect polyfill. 2017-08-07 15:40:15 -07:00
Kara
f69561b2de feat(forms): add updateOn submit option to FormControls (#18514) 2017-08-07 15:39:25 -07:00
Pawel Kozlowski
685cc26ab2 fix(common): don't recreate view when context shape doesn't change (#18277)
Problem description: when using ngTemplateOutlet with context as
an object literal in a template and binding to the context's property
the embedded view would get re-created even if context object remains
essentially the same (the same shape, just update to one properties).
This happens since currently change detection will re-create object
references when an object literal is used and one of its properties
gets updated through a binding.

Solution: this commit changes ngTemplateOutlet logic so we take
context object shape into account before deciding if we should
re-create view or just update existing context.

Fixes #13407
2017-08-07 14:31:26 -07:00
Chuck Jazdzewski
5b7432b6ea fix(compiler-cli): remove minimist dependency of compiler-cli/index (#18532)
Indirectly removes the minimist dependency in the language service
package was added with the addition of `ngc.ts`.
2017-08-07 14:30:35 -07:00
Poy Chang
04b18a9f46 docs(common): fix the DatePipe API docs (#18548) 2017-08-07 11:47:08 -07:00
Matias Niemelä
05472cb21b fix(animations): support persisting dynamic styles within animation states (#18468)
Closes #18423
Closes #17505
2017-08-07 11:40:04 -07:00
Matias Niemelä
c0c03dc4ba fix(animations): revert container/queried animations accordingly during cancel (#18516) 2017-08-07 11:38:30 -07:00
雪狼
f9f8924c49 docs(aio): typo & update the bio (#18559) 2017-08-07 10:20:11 -07:00
Zhicheng Wang
c6227765a7 fix: minor improvement 2017-08-07 08:26:06 +08:00
gc
33b478b3a2 docs(tutorial): fix demo broken link
toh-pt6
2017-08-07 08:13:47 +08:00
Zhicheng Wang
5401322110 fix: 修正在线例子的链接 2017-08-07 08:10:17 +08:00
Zhicheng Wang
23c9646bdf fix: 修正在线例子的链接 2017-08-07 08:09:33 +08:00
Zhicheng Wang
e29188ad54 fix: 快速起步改为快速上手 2017-08-07 07:49:44 +08:00
Zhicheng Wang
243430bc12 fix: minor improvement 2017-08-07 07:43:37 +08:00
Zhicheng Wang
5ccee9f642 fix: minor improvement 2017-08-06 18:17:40 +08:00
Zhicheng Wang
f2d870e0b8 fix: translate the rest of structural directives 2017-08-06 14:08:44 +08:00
Zhicheng Wang
104edf62f0 fix: minor improvement 2017-08-06 13:49:04 +08:00
Zhicheng Wang
7e5fb1d5fa fix: minor improvement 2017-08-06 13:47:26 +08:00
Zhicheng Wang
74f98b871c fix: minor improvement 2017-08-06 13:45:13 +08:00
Zhicheng Wang
de6cfeeee3 clean: remove useless codes 2017-08-06 13:42:51 +08:00
Zhicheng Wang
0eaf9156de fix: use new translation logic 2017-08-06 13:37:25 +08:00
Zhicheng Wang
4c2b0b51b7 fix: some untranslated english 2017-08-06 13:23:56 +08:00
Zhicheng Wang
3a584ba96c fix: some untranslated english 2017-08-06 13:21:34 +08:00
Zhicheng Wang
477be082fb fix: minor improvement 2017-08-06 08:06:53 +08:00
Zhicheng Wang
019cd2e09c fix: minor improvement 2017-08-06 08:05:08 +08:00
Zhicheng Wang
91774ac411 fix: content and toc is overlapped 2017-08-06 07:39:26 +08:00
Zhicheng Wang
446b0be846 fix: minor improvement 2017-08-05 23:51:25 +08:00
Zhicheng Wang
e7692d9e6f fix: translated language service 2017-08-05 23:49:55 +08:00
Zhicheng Wang
8d21900eb9 fix: minor improvement 2017-08-05 22:56:57 +08:00
Zhicheng Wang
2f17cb46c5 fix: missing break lines 2017-08-05 22:47:21 +08:00