angular-docs-cn/packages/compiler/test/i18n
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
..
serializers fix(compiler): add equiv & disp attributes to Xliff2 ICU placeholders (#18283) 2017-07-25 15:58:53 -05:00
digest_spec.ts feat(compiler): add source files to xmb/xliff translations (#14705) 2017-04-14 09:06:25 -07:00
extractor_merger_spec.ts build: enable TSLint on the packages folder 2017-07-31 15:47:57 -07:00
i18n_html_parser_spec.ts fix(compiler): remove i18n markup even if no translations (#17999) 2017-07-07 16:16:49 -07:00
i18n_parser_spec.ts fix(compiler): allow single quotes into named interpolations (#15461) 2017-03-24 15:10:41 -07:00
integration_common.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
integration_xliff2_spec.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
integration_xliff_spec.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
integration_xmb_xtb_spec.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
message_bundle_spec.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
translation_bundle_spec.ts feat(compiler): add source files to xmb/xliff translations (#14705) 2017-04-14 09:06:25 -07:00