angular/packages/core/src/metadata
Misko Hevery 503905c807 feat(ivy): add ngcc ivy switch (#25238)
Provides a runtime and compile time switch for ivy including
`ApplicationRef.bootstrapModule`.

This is done by naming the symbols such that `ngcc` (angular
Compatibility compiler) can rename symbols in such a way that running
`ngcc` command will switch the `@angular/core` module from `legacy` to
`ivy` mode.

This is done as follows:

```
const someToken__PRE_NGCC__ = ‘legacy mode’;
const someToken__POST_NGCC__ = ‘ivy mode’;

export someSymbol = someToken__PRE_NGCC__;
```

The `ngcc` will search for any token which ends with `__PRE_NGCC__`
and replace it with `__POST_NGCC__`. This allows the `@angular/core`
package to be rewritten to ivy mode post `ngcc` execution.

PR Close #25238
2018-08-16 13:51:42 -07:00
..
di.ts docs(core): clarify supported ViewChild selectors (#22784) 2018-08-06 13:40:47 -07:00
directives.ts feat(ivy): add ngcc ivy switch (#25238) 2018-08-16 13:51:42 -07:00
lifecycle_hooks.ts docs: technical review incorporated (#24744) 2018-07-20 12:40:00 -07:00
ng_module.ts feat(ivy): add ngcc ivy switch (#25238) 2018-08-16 13:51:42 -07:00
resource_loading.ts feat(ivy): Support resource resolution in JIT mode. (#24637) 2018-06-28 14:59:48 -07:00
view.ts feat(core): add support for ShadowDOM v1 (#24718) 2018-07-02 14:37:41 -07:00