angular-cn/modules
crisbeto d5b87d32b0 perf(ivy): move attributes array into component def (#32798)
Currently Ivy stores the element attributes into an array above the component def and passes it into the relevant instructions, however the problem is that upon minification the array will get a unique name which won't compress very well. These changes move the attributes array into the component def and pass in the index into the instructions instead.

Before:
```
const _c0 = ['foo', 'bar'];

SomeComp.ngComponentDef = defineComponent({
  template: function() {
    element(0, 'div', _c0);
  }
});
```

After:
```
SomeComp.ngComponentDef = defineComponent({
  consts: [['foo', 'bar']],
  template: function() {
    element(0, 'div', 0);
  }
});
```

A couple of cases that this PR doesn't handle:
* Template references are still in a separate array.
* i18n attributes are still in a separate array.

PR Close #32798
2019-10-09 13:16:55 -07:00
..
angular1_router build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
benchmarks perf(ivy): move attributes array into component def (#32798) 2019-10-09 13:16:55 -07:00
benchmarks_external test: remove bower and polymer benchmarks (#27931) 2019-01-04 12:02:22 -08:00
e2e_util build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
payload_tests/hello_world/ts docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
playground ci: add assets to ng_module in playground todo (#32678) 2019-09-16 15:35:37 -07:00
empty.ts refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
system.d.ts refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
tsconfig.json build: convert largeform benchmarks to bazel (#28645) 2019-02-13 12:15:01 -08:00
types.d.ts build: switch to typescript's es2015 typings (#28570) 2019-02-06 14:17:55 -05:00