8339 Commits

Author SHA1 Message Date
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
Zhicheng Wang
2e97123611 fix: minor issue 2017-08-05 22:41:26 +08:00
Zhicheng Wang
36206ac2cf fix: minor issue 2017-08-05 22:40:17 +08:00
Zhicheng Wang
1de1da605b fix: translated http-client 2017-08-05 22:32:31 +08:00
Zhicheng Wang
5834211133 fix: a minor mistake (#235) 2017-08-05 18:02:40 +08:00
Zhicheng Wang
a2cb8b052b fix: translated the rest of visual studio 2015 2017-08-05 13:41:29 +08:00
Zhicheng Wang
ab47b12f52 fix: translated the rest of i18n 2017-08-05 13:23:14 +08:00
Zhicheng Wang
160306833c fix: translated the rest of template-syntax 2017-08-05 12:47:14 +08:00
Zhicheng Wang
b0d988c38f fix: translated the rest of router and structural-directives 2017-08-05 09:41:33 +08:00
Zhicheng Wang
87bc1f6c7a fix: minor improvement 2017-08-05 08:15:43 +08:00
Zhicheng Wang
003cf81d33 fix: minor improvement 2017-08-05 08:04:16 +08:00
Peter Bacon Darwin
10897d6473 ci(aio): compute AIO deployment mode
There are now 3 modes for deployment: next, stable, archive.
We compute which mode (and other deployment properties)
from the `TRAVIS_BRANCH` and the `STABLE_BRANCH`.

If the TRAVIS_BRANCH is master we deploy as "next".
If the `TRAVIS_BRANCH` matches the `STABLE_BRANCH` we deploy as "stable".

Otherwise if the branch has a major version lower than the stable version
and its minor version is highest of similar branches we deploy as "archive".

For "archive" deployments we compute the firebase project and deployment
url based on the major version of the `TRAVIS_BRANCH`.

As well as choosing where to deploy the build, we also use this
to select the environment file for the AIO Angular app.
This will enable the app to change its rendering and behaviour
based on its mode.

See #18287
Closes #18297
2017-08-04 09:14:18 -07:00
Peter Bacon Darwin
340837aa46 feat(aio): add "archive" and "next" color themes 2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
42ef1be75c feat(aio): redirect marketing pages to docs if deploy mode is archive
See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
a5801b6020 feat(aio): add deploy mode to version picker
See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
70b62949de feat(aio): enable deployment mode to be set via URL query
The deployment mode set from the environment provided at build time;
or overridden by the `mode` query parameter: e.g. `...?mode=archive`

See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
36161d99f6 feat(aio): update UI based on deployment mode
* Add a banner if the mode is "archive"
* Add a `mode-...` class to the `aio-shell` element to enable
mode based theming.

See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
0714139e37 ci(aio): include extra files in AIO deployment based on mode
Any files that are inside the `extra-files/{mode}` folder
will be copied over to the `dist` folder before deployment
to Firebase.

See #18287
2017-08-04 09:13:34 -07:00
Peter Bacon Darwin
bcb36d9b6d ci(aio): compute AIO deployment mode
There are now 3 modes for deployment: next, stable, archive.
We compute which mode (and other deployment properties)
from the `TRAVIS_BRANCH` and the `STABLE_BRANCH`.

If the TRAVIS_BRANCH is master we deploy as "next".
Otherwise if the branch is the highest of its minor versions
we deploy as "stable" if the `TRAVIS_BRANCH` matches the `STABLE_BRANCH` or
else "archive".

For "archive" deployments we compute the firebase project and deployment
url based on the major version of the `TRAVIS_BRANCH`.

As well as choosing where to deploy the build, we also use this
to select the environment file for the AIO Angular app.
This will enable the app to change its rendering and behaviour
based on its mode.

See #18287
2017-08-04 09:13:34 -07:00