Chuck Jazdzewski
ee2d6e572a
fix(compiler): fix performance regression caused by 5b0f9e2
...
Fixes #13146
2016-11-30 15:13:39 -08:00
Tobias Bosch
69572ac2f1
Revert "refactor(compiler): move static_reflector into @angular/compiler and rename files"
...
This reverts commit 8f295287a2 .
2016-11-23 12:09:10 -08:00
Tobias Bosch
76f53f929c
Revert "refactor(compiler): move findDeclaration into the StaticReflector"
...
This reverts commit e7025c9423 .
2016-11-23 12:09:09 -08:00
Tobias Bosch
ba52f2f252
Revert "refactor(compiler): remove asset: urls"
...
This reverts commit 0c98f45105 .
2016-11-23 12:09:08 -08:00
Tobias Bosch
e122f6bf0f
Revert "refactor(compiler): add createAotCompiler factory"
...
This reverts commit 170525a225 .
2016-11-23 12:09:07 -08:00
Tobias Bosch
453c758d1a
Revert "refactor(compiler): move symbol extraction to AotCompiler"
...
This reverts commit b5afe51b26 .
2016-11-23 12:09:06 -08:00
Tobias Bosch
f32e287812
Revert "refactor(tsc-wrapped): collect all exported functions and classes and bump metadata version from 1 to 2"
...
This reverts commit 39a71eb0ec .
2016-11-23 12:08:46 -08:00
Tobias Bosch
9946ac5cc7
Revert "refactor(compiler): renames"
...
This reverts commit 38be2b81c6 .
2016-11-23 12:08:45 -08:00
Tobias Bosch
593e05dc97
Revert "refactor(comiler): various cleanups"
...
This reverts commit ef38676091 .
2016-11-23 12:08:44 -08:00
Tobias Bosch
da77b580c9
Revert "refactor(compiler): Reintroduce ReflectorHost and move Extractor into @angular/compiler"
...
This reverts commit 64bd672e3a .
2016-11-23 12:08:42 -08:00
Tobias Bosch
1733ea09bd
Revert "refactor(compiler): further minor fixes"
...
This reverts commit 3d407fc010 .
2016-11-23 12:08:41 -08:00
Tobias Bosch
1f4fa28fac
Revert "refactor(compiler): allow control of StaticSymbol lifetime ( #12986 )"
...
This reverts commit 2ca67e1674 .
2016-11-23 12:08:41 -08:00
Chuck Jazdzewski
2ca67e1674
refactor(compiler): allow control of StaticSymbol lifetime ( #12986 )
2016-11-22 14:26:20 -08:00
Tobias Bosch
3d407fc010
refactor(compiler): further minor fixes
2016-11-22 14:26:19 -08:00
Tobias Bosch
64bd672e3a
refactor(compiler): Reintroduce ReflectorHost and move Extractor into @angular/compiler
2016-11-22 14:26:19 -08:00
Tobias Bosch
ef38676091
refactor(comiler): various cleanups
2016-11-22 14:26:19 -08:00
Tobias Bosch
38be2b81c6
refactor(compiler): renames
...
- `NgHost` to `CompilerHost`
- `AotCompilerHost.resolveFileToImport` to `AotCompilerHost.fileNameToModuleName`
- `AotCompilerHoset.resolveImportToFile` to `AotCompilerHost.moduleNameToFileName`
2016-11-22 14:26:19 -08:00
Tobias Bosch
39a71eb0ec
refactor(tsc-wrapped): collect all exported functions and classes and bump metadata version from 1 to 2
...
This is needed to resolve symbols without `.d.ts` files.
This bumps the version of the metadata from 1 to 2.
This adds logic into `ng_host.ts` to automatically upgrade
version 1 to version 2 metadata by adding the exported symbols
from the `.d.ts` file.
2016-11-22 14:26:19 -08:00
Tobias Bosch
b5afe51b26
refactor(compiler): move symbol extraction to AotCompiler
2016-11-22 14:26:19 -08:00
Tobias Bosch
170525a225
refactor(compiler): add createAotCompiler factory
...
Also adds 2 more methods to the `AotCompilerHost`:
- `loadResource`
- `resolveFileToImport`
2016-11-22 14:26:19 -08:00
Tobias Bosch
0c98f45105
refactor(compiler): remove asset: urls
...
These urls were just relicts from Dart.
2016-11-22 14:26:19 -08:00
Tobias Bosch
e7025c9423
refactor(compiler): move findDeclaration into the StaticReflector
...
Previously, this was part of the `AotCompilerHost`.
The `AotCompilerHost` is now also greatly simplified.
2016-11-22 14:26:18 -08:00
Tobias Bosch
8f295287a2
refactor(compiler): move static_reflector into @angular/compiler and rename files
...
- `src/runtime_compiler.ts` -> `src/jit/compiler.ts`
- `src/compiler.ts` -> `src/jit/compiler_factory.ts`
- `src/offline_compiler` -> `src/aot/compiler.ts`
Part of #12867
2016-11-22 14:26:18 -08:00
Chuck Jazdzewski
5b0f9e2f51
refactor(compiler): allows synchronous retrieving of metadata ( #12908 )
...
Allows non-normalized metadata to be retrieved synchronously.
Related to #7482
2016-11-16 16:26:44 -08:00
Matias Niemelä
5c46c493f2
fix(animations): retain styling when transition destinations are changed ( #12208 )
...
Closes #9661
Closes #12208
2016-11-16 16:26:43 -08:00
Victor Berchet
22536442d6
refactor(core): remove ListWrapper from i18n
2016-11-16 16:26:42 -08:00
Joao Dias
77ee27c59e
refactor(): use const and let instead of var
2016-11-12 16:40:17 -08:00
Chuck Jazdzewski
a965d11cce
fix(compiler): generate safe access strictNullChecks compatible code ( #12800 )
...
fixes #12795
2016-11-11 17:12:17 -08:00
Tobias Bosch
fcb4e66493
refactor(compiler): introduce summaries for metadata ( #12799 )
...
This does not yet introduce loading / serialization of summaries.
Part of #12787
2016-11-10 16:27:53 -08:00
Tobias Bosch
79383ce150
refactor(compiler): never create CompileDirectiveMetadata with not loaded resources ( #12788 )
...
Part of #12787
2016-11-10 14:07:30 -08:00
Chuck Jazdzewski
c3c0e2e2a2
refactor(compiler): add span to TemplateBinding ( #12792 )
...
fix(compiler): corrected error location for implicit templates expressions
2016-11-10 13:15:09 -08:00
Victor Berchet
2ced2a8a5a
refactor(compiler): misc updates ( #12773 )
2016-11-09 16:23:41 -08:00
Pawel Kozlowski
634b3bb88b
feat(core): map 'for' attribute to 'htmlFor' property ( #10546 )
...
This improves ergonomics a bit by allowing people to write:
`<label [for]="ctxProp"></label>`.
This is similar to the existing class -> className mapping.
Closes #7516
2016-11-09 15:21:27 -08:00
Matias Niemelä
fe35bc34f6
fix(animations): allow animations to be destroyed manually ( #12719 )
...
Closes #12456
Closes #12719
2016-11-08 16:21:28 -08:00
Matias Niemelä
a0e9fde653
fix(animations): always normalize style properties and values during compilation ( #12755 )
...
Closes #11582
Closes #12481
Closes #12755
2016-11-08 15:45:30 -08:00
Victor Berchet
778e6ad3b4
refactor: cleanup ICU message syntax
2016-11-08 15:44:18 -08:00
Victor Berchet
55dc0e4a5f
fix(compiler): use the other case by default in ICU messages
2016-11-08 15:44:18 -08:00
Victor Berchet
7694f974af
refactor: remove some facades ( #12731 )
2016-11-08 15:43:24 -08:00
Victor Berchet
acbf1d859c
fix(core): fix pseudo-selector shimming ( #12754 )
...
fixes #12730
fixes #12354
2016-11-07 13:56:04 -08:00
Pawel Kozlowski
22c021c57f
fix(compiler): support more than 9 interpolations ( #12710 )
...
Fixes #10253
2016-11-07 12:23:03 -08:00
Victor Berchet
ec92f4b198
refactor: remove keys() and values() from MapWrapper
2016-11-04 13:27:38 -07:00
Pawel Kozlowski
f0cdb428f5
fix(compiler): don't convert undefined to null literals ( #11503 )
...
Fixes #11493
2016-11-04 10:55:21 -07:00
Tobias Bosch
051d74802a
fix(core): ensure that component views that have no bindings recurse into nested components / view containers.
2016-11-04 10:50:27 -07:00
Tobias Bosch
f2bbef3e33
fix(core): allow to query content of templates that are stamped out at a different place
...
Previously, if a `TemplateRef` was created in a `ViewContainerRef`
at a different place, the content was not query able at all.
With this change, the content of the template can be queried
as if it was stamped out at the declaration place of the template.
E.g. in the following example, the `QueryList<ChildCmp>` will
be filled once the button is clicked.
```
@Component({
selector: ‘my-comp’,
template: ‘<button #vc (click)=“createView()”></button>’
})
class MyComp {
@ContentChildren(ChildCmp)
children: QueryList<ChildCmp>;
@ContentChildren(TemplateRef)
template: TemplateRef;
@ViewChild(‘vc’, {read: ViewContainerRef})
vc: ViewContainerRef;
createView() {
this.vc.createEmbeddedView(this.template);
}
}
@Component({
template: `
<my-comp>
<template><child-cmp></child-cmp></template>
</my-comp>
`
})
class App {}
```
Closes #12283
Closes #12094
2016-11-04 10:50:27 -07:00
Tobias Bosch
e3687706c7
refactor(compiler): minor cleanup
2016-11-03 16:29:51 -07:00
Tobias Bosch
9c23884da4
perf(compiler): introduce direct rendering
...
This allows to attach / detach embedded views and projected nodes
in a faster way.
2016-11-03 16:29:51 -07:00
Tobias Bosch
0e3d655220
refactor(compiler): remove view factories, use view classes directly
2016-11-02 20:58:48 -07:00
Tobias Bosch
7c5cc9bc41
refactor(compiler): initialize RenderComponentType eagerly
...
This moves the usage of `APP_ID` into the `DomRenderer`.
2016-11-02 20:58:48 -07:00
Tobias Bosch
5f1dddc5d0
refactor(compiler): cleanups
2016-11-02 17:06:27 -07:00
Tobias Bosch
20a4f9923f
refactor(compiler): remove view.parentInjector
2016-11-02 17:06:27 -07:00