angular-cn/packages/core/test/acceptance
Pete Bacon Darwin 2ebe2bcb2f refactor(compiler): move factory out of injector definition (#41022)
Previously, injector definitions contained a `factory` property that
was used to create a new instance of the associated NgModule class.

Now this factory has been moved to its own `ɵfac` static property on the
NgModule class itself. This is inline with how directives, components and
pipes are created.

There is a small size increase to bundle sizes for each NgModule class,
because the `ɵfac` takes up a bit more space:

Before:

```js
let a = (() => {
  class n {}
  return n.\u0275mod = c.Cb({type: n}),
  n.\u0275inj = c.Bb({factory: function(t) { return new (t || n) }, imports: [[e.a.forChild(s)], e.a]}),
  n
})(),
```

After:

```js
let a = (() => {
  class n {}
  return n.\u0275fac = function(t) { return new (t || n) },
  n.\u0275mod = c.Cb({type: n}),
  n.\u0275inj = c.Bb({imports: [[r.a.forChild(s)], r.a]}),
  n
})(),
```

In other words `n.\u0275fac = ` is longer than `factory: ` (by 5 characters)
and only because the tooling insists on encoding `ɵ` as `\u0275`.

This can be mitigated in a future PR by only generating the `ɵfac` property
if it is actually needed.

PR Close #41022
2021-03-08 15:31:30 -08:00
..
BUILD.bazel refactor(core): add debug ranges to `LViewDebug` with matchers (#38359) 2020-08-06 16:58:11 -07:00
attributes_spec.ts
bootstrap_spec.ts fix(core): unsubscribe from the `onError` when the root view is removed (#39940) 2020-12-03 13:44:17 -08:00
change_detection_spec.ts fix(core): Ensure OnPush ancestors are marked dirty when events occur (#39833) 2020-11-25 14:39:19 -08:00
change_detection_transplanted_view_spec.ts fix(core): clear the `RefreshTransplantedView` when detached (#38768) 2020-09-10 09:11:38 -07:00
common_integration_spec.ts
component_spec.ts fix(core): Call `onDestroy` in production mode as well (#40120) 2020-12-22 08:02:27 -08:00
content_spec.ts docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00
copy_definition_feature_spec.ts
debug_spec.ts refactor(core): Create `TNodeType.Text` to display full template in `TView` debug (#39233) 2020-10-21 18:33:00 -07:00
di_spec.ts refactor(core): add links to top runtime errors (#40326) 2021-01-19 10:14:56 -08:00
directive_spec.ts
discover_utils_spec.ts
embedded_views_spec.ts
exports_spec.ts
host_binding_spec.ts fix(compiler): incorrectly interpreting some HostBinding names (#40233) 2021-01-07 13:15:46 -08:00
i18n_spec.ts fix(compiler): avoid duplicate i18n blocks for i18n attrs on elements with structural directives (#40077) 2020-12-15 13:40:09 -08:00
inherit_definition_feature_spec.ts
integration_spec.ts fix(animations): properly track listeners for a removed element (#40712) 2021-02-09 10:50:19 -08:00
lifecycle_spec.ts fix(core): error if detectChanges is called at the wrong time under specific circumstances (#40206) 2020-12-22 14:52:12 -08:00
listener_spec.ts fix(compiler): preserve this.$event and this.$any accesses in expressions (#39323) 2020-10-30 10:49:15 -07:00
ng_module_spec.ts refactor(compiler): move factory out of injector definition (#41022) 2021-03-08 15:31:30 -08:00
ngdevmode_debug_spec.ts
ngmodule_scope_spec.ts fix(core): prevent NgModule scope being overwritten in JIT compiler (#37795) 2020-08-11 09:50:27 -07:00
outputs_spec.ts
pipe_spec.ts fix(compiler): evaluate safe navigation expressions in correct binding order (#37911) 2020-08-11 09:51:10 -07:00
property_binding_spec.ts fix(compiler): don't report parse error for interpolation inside string in property binding (#40267) 2021-01-05 13:57:23 -08:00
property_interpolation_spec.ts
providers_spec.ts feat(core): update reference and doc to change `async` to `waitAsync`. (#37583) 2020-08-03 12:54:13 -07:00
pure_function_spec.ts
query_spec.ts fix(core): `QueryList` should not fire changes if the underlying list did not change. (#40091) 2021-01-14 13:55:02 -08:00
renderer_factory_spec.ts
router_integration_spec.ts
security_spec.ts fix(core): fix possible XSS attack in development through SSR (#40525) 2021-01-26 09:32:27 -08:00
styling_spec.ts fix(core): handle !important in style property value (#39603) 2020-11-12 09:11:18 -08:00
template_ref_spec.ts fix(core): allow EmbeddedViewRef context to be updated (#40360) 2021-02-23 08:14:01 -08:00
text_spec.ts fix(compiler): handle strings inside bindings that contain binding characters (#39826) 2020-12-10 11:11:21 -08:00
view_container_ref_spec.ts fix(core): fix multiple nested views removal from ViewContainerRef (#38317) 2020-08-13 13:35:53 -07:00
view_insertion_spec.ts
view_ref_spec.ts fix(core): memory leak if view container host view is destroyed while view ref is not (#40219) 2021-01-08 09:45:12 -08:00