angular-docs-cn/packages/core/test/view
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
..
anchor_spec.ts fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 09:34:45 -07:00
component_view_spec.ts perf(core): use native addEventListener for faster rendering. (#18107) 2017-07-25 15:35:44 -05:00
element_spec.ts perf(core): use native addEventListener for faster rendering. (#18107) 2017-07-25 15:35:44 -05:00
embedded_view_spec.ts fix(animations): use a lightweight renderer for non-animation components (#17003) 2017-05-26 14:39:42 -06:00
helper.ts ci: update build to use TypeScript 2.3.2 (#16707) 2017-05-16 13:29:38 -07:00
ng_content_spec.ts fix(animations): use a lightweight renderer for non-animation components (#17003) 2017-05-26 14:39:42 -06:00
provider_spec.ts perf: switch angular to use StaticInjector instead of ReflectiveInjector 2017-08-07 15:42:34 -07:00
pure_expression_spec.ts fix(compiler): emits quoted keys only iff they are quoted in the original template 2017-07-07 16:17:33 -07:00
query_spec.ts feat: introduce `TestBed.overrideProvider` (#16725) 2017-05-15 13:12:10 -07:00
services_spec.ts fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 09:34:45 -07:00
text_spec.ts fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 09:34:45 -07:00
view_def_spec.ts fix(core): Update types for TypeScript nullability support (#15472) 2017-03-29 09:34:45 -07:00