angular-docs-cn/modules/@angular/compiler
Tobias Bosch bf598d6b8b feat(compiler): support sync runtime compile
Adds new abstraction `Compiler` with methods
`compileComponentAsync` and `compileComponentSync`.
This is in preparation of deprecating `ComponentResolver`.

`compileComponentSync` is able to compile components
synchronously given all components either have an inline
template or they have been compiled before.

Also changes `TestComponentBuilder.createSync` to
take a `Type` and use the new `compileComponentSync` method.

Also supports overriding the component metadata even if
the component has already been compiled.

Also fixes #7084 in a better way.

BREAKING CHANGE:
`TestComponentBuilder.createSync` now takes a component type
and throws if not all templates are either inlined
are compiled before via `createAsync`.

Closes #9594
2016-06-28 10:26:16 -07:00
..
src feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
test feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
testing feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
compiler.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
core_private.dart repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
core_private.ts feat(core): split ChangeDetectorStrategy into ChangeDetectionStrategy and ChangeDetectorStatus 2016-06-27 20:19:20 -07:00
index.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
package.json chore(package.json): make the packages installable 2016-05-27 17:21:34 -07:00
private_export.dart repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
private_export.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
rollup.config.js build: fix source map paths for npm packages 2016-05-03 13:36:33 -06:00
testing.ts chore(api): clean up compiler/testing api (#9520) 2016-06-23 15:52:18 -07:00
tsconfig-es5.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00
tsconfig-es2015.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00