angular-cn/packages/core/test/bundling
Matias Niemelä 693045165c refactor(ivy): remove def.attributes in favor of the `elementHostAttrs` instruction (#28089)
Up until this point, all static attribute values (things like `title` and `id`)
defined within the `host` are of a Component/Directive definition were
generated into a `def.attributes` array and then processed at runtime.
This design decision does not lend itself well to tree-shaking and is
inconsistent with other static values such as styles and classes.

This fix ensures that all static attribute values (attributes, classes,
and styles) that exist within a host definition for components and
directives are all assigned via the `elementHostAttrs` instruction.

```
// before
defineDirective({
  ...
  attributes: ['title', 'my title']
  ...
})

//now
defineDirective({
  ...
  hostBindings: function() {
    if (create) {
      elementHostAttrs(..., ['title', 'my-title']);
    }
    ...
  }
  ...
})
```

PR Close #28089
2019-01-15 09:45:41 -08:00
..
animation_world fix(ivy): merge static style rendering across elements, directives and components (#27661) 2018-12-21 18:14:44 -05:00
hello_world refactor(ivy): remove def.attributes in favor of the `elementHostAttrs` instruction (#28089) 2019-01-15 09:45:41 -08:00
hello_world_i18n fix(ivy): remove obsolete ng_module code for global and jit mode (#27278) 2018-11-27 10:30:58 -08:00
hello_world_r2 test(ivy): remove symbol tests which are too big and not useful (#27446) 2018-12-04 23:17:52 -08:00
injection test: improve symbol-extractor test by ignoring $1 suffix (#28098) 2019-01-14 09:55:30 -08:00
todo fix(ivy): ensure component/directive `class` selectors are properly understood (#27849) 2019-01-15 09:44:50 -08:00
todo_i18n test(ivy): add bundling test `todo_i18n` (#27420) 2018-12-04 19:59:12 -08:00
todo_r2 test(ivy): remove symbol tests which are too big and not useful (#27446) 2018-12-04 23:17:52 -08:00
util test(ivy): fix or disable failing ivy tests (#26735) 2018-10-26 14:48:05 -04:00