Tobias Bosch
e76f33f3cc
fix(compiler): support multiple components in a view container
2016-11-03 10:29:17 -07:00
Tobias Bosch
b60f03e074
refactor(compiler): remove unused constructor query support
2016-11-03 10:29:17 -07:00
Tobias Bosch
4571dffbc9
refactor(compiler): make view.disposable array null if empty
2016-11-03 10:29:17 -07:00
Tobias Bosch
d9c0eb7c78
refactor(compiler): remove view.rootNodes and view.projectableNodes
...
They are replaced by generated visitor functions `view.visitRootNodes` / `view.visitProjectableNodes`.
2016-11-03 10:29:17 -07:00
Tobias Bosch
a40e883799
refactor(compiler): inline view.contentChildren
2016-11-03 10:29:17 -07:00
Tobias Bosch
b225f03174
refactor(compiler): inline view.viewChildren in generated code
2016-11-03 10:29:17 -07:00
Tobias Bosch
369945d4d6
refactor(compiler): remove unused subscriptions in view
2016-11-03 10:29:17 -07:00
Tobias Bosch
56b6df8e78
fix(compiler): dedupe NgModule declarations, …
...
This is important so that we don’t generate things multiple times.
2016-11-03 10:29:16 -07:00
Tobias Bosch
fa4c3ab5b0
fix(compiler): Don’t throw on empty property bindings
...
Closes #12583
2016-11-03 10:29:16 -07:00
Zaven Muradyan
dbd91473fc
fix(core): improve error when multiple components match the same element
...
Closes #7067
2016-11-03 10:29:15 -07:00
Tobias Bosch
6676073a4f
fix(compiler): don’t double bind functions
...
This fixes a performance regressions introduced by 178fb79b5c .
Also makes properties in the directive wrapper private
so that closure compiler can minify them better.
2016-11-03 10:20:17 -07:00
Tobias Bosch
1aabfbb312
refactor(compiler): generate host listeners in DirectiveWrappers
...
Part of #11683
2016-11-03 10:20:11 -07:00
Jan Kuri
c7e4b86bf1
fix: remove double exports of template_ast
2016-10-27 20:15:18 +02:00
Dzmitry Shylovich
80efa4b26b
fix(selectors): use Maps instead of objects
2016-10-27 20:14:46 +02:00
Tobias Bosch
487970f6f2
refactor(compiler): move host properties into DirectiveWrapper
...
Part of #11683
2016-10-27 20:14:29 +02:00
Tobias Bosch
6f54ed01a8
refactor(compiler): extract createCheckBindingStmt into compiler_util
...
Part of #11683
2016-10-27 20:14:15 +02:00
Tobias Bosch
ef99670343
refactor(compiler): minor cleanups
2016-10-27 20:14:06 +02:00
Tobias Bosch
808e4cf1b6
refactor(compiler): extract expression evaluation and writing to renderer from view_compiler
...
This is needed to that `DirectiveWrapper`s can also use them later on.
Part of #11683
2016-10-27 20:13:59 +02:00
Tobias Bosch
9cb71fc7c9
refactor(compiler): introduce ClassBuilder.
...
Part of #11683
2016-10-27 20:13:52 +02:00
Tobias Bosch
6f082f93f5
refactor(compiler): set element attributes via one call
...
This makes the cost of using directives that have host attributes
smaller.
Part of #11683
2016-10-27 20:13:45 +02:00
Tobias Bosch
0d7124e7cb
refactor(compiler): extract BindingParser
...
Needed so that we can parse directive host bindings independent of templates.
Part of #11683
2016-10-27 20:13:39 +02:00
Victor Berchet
8113a03c21
fix(CompilerCli): assert that all pipes and directives are declared by a module
2016-10-27 20:12:26 +02:00
Victor Berchet
0fd859ca0b
fix(compiler): walk third party modules ( #12453 )
...
fixes #11889
fixes #12428
2016-10-27 20:12:03 +02:00
Victor Berchet
675e3d4244
refactor: remove most facades ( #12399 )
2016-10-27 20:08:06 +02:00
Tobias Bosch
7bce0153bb
fix(compiler): don't access view local variables nor pipes in host expressions ( #12396 )
...
Fixes #12004
Closes #12071
2016-10-27 19:47:51 +02:00
Tobias Bosch
958bb0da04
refactor(compiler): introduce directive wrappers to generate less code
...
- for now only wraps the `@Input` properties and calls
to `ngOnInit`, `ngDoCheck` and `ngOnChanges` of directives.
- also groups eval sources by NgModule.
Part of #11683
2016-10-20 15:30:27 -07:00
Tobias Bosch
c04b4d795a
refactor(compiler): remove private exports
...
All of `@angular/compiler` is private, so we can export
everything we need directly.
2016-10-20 15:29:25 -07:00
Victor Berchet
680ceb7d65
refactor: remove some facades ( #12335 )
2016-10-20 15:25:05 -07:00
Alex Eagle
cca4a5c519
fix(compiler): don't redeclare a var in the same scope ( #12386 )
...
This is not allowed by Closure Compiler.
2016-10-18 20:28:30 -07:00
Matias Niemelä
6e5f8b59b3
fix(animations): generate aot code for animation trigger output events ( #12291 )
...
Closes #11707
Closes #12291
2016-10-18 17:16:51 -07:00
Victor Berchet
38e2203b24
refactor(core): delete unused reflector code
2016-10-17 23:17:34 -07:00
Victor Berchet
f7db0668d1
refactor(core): simplify & cleanup reflection
2016-10-17 23:17:34 -07:00
Matias Niemelä
33c8948fd3
refactor(animations): ensure animation data-structures are created only when used
...
Closes #12250
2016-10-14 15:43:41 -07:00
Victor Berchet
df1718d624
fix(compiler): allow WS as <ng-content> content ( #12225 )
2016-10-12 07:58:06 -07:00
Chuck Jazdzewski
7275e1beb3
refactor(compiler): add optional visit() to TemplateAstVisitor ( #12209 )
2016-10-11 15:46:11 -07:00
Chuck Jazdzewski
12ba62e5e2
refactor(compiler): expose template parser phases ( #12210 )
2016-10-11 15:45:27 -07:00
Victor Berchet
e6e007e2f1
refactor(core): cleanup SpyObject ( #12221 )
2016-10-11 15:44:48 -07:00
Victor Berchet
d972d82354
refactor: simplify isPresent(x) ? x : y to x || y ( #12166 )
...
Closes #12166
2016-10-10 09:20:58 -07:00
Victor Berchet
bdcf46f82e
refactor(compiler): improve types, misc
2016-10-10 09:20:58 -07:00
Victor Berchet
aa92512ac6
fix(compiler): properly shim :host:before and :host(:before) ( #12171 )
...
fixes #12165
2016-10-10 09:15:15 -07:00
Chuck Jazdzewski
4202936bbf
refactor(compiler): add optional visit() to html AST Visitor ( #12135 )
2016-10-10 09:13:50 -07:00
Chuck Jazdzewski
e1faca6386
refactor(compiler): template element ast has endSourceSpan ( #12138 )
2016-10-10 09:12:05 -07:00
Victor Berchet
13ecc140e8
fix(compiler): validate @HostBinding name ( #12139 )
...
relates to #7500
2016-10-07 13:53:53 -07:00
Chuck Jazdzewski
709a6dea06
refactor(compiler): attribute ast records span of the value ( #12132 )
2016-10-07 13:53:29 -07:00
Chuck Jazdzewski
16cfb88c00
refactor(compiler): refactor analyzeModules() out of OfflineCompiler ( #12137 )
2016-10-07 13:52:53 -07:00
Chuck Jazdzewski
d641c36a45
fix(compiler): interpolation expressions report the correct offset ( #12125 )
2016-10-06 15:22:10 -07:00
Alex Eagle
8c975ed156
refactor(facade): inline StringWrapper ( #12051 )
2016-10-06 15:10:27 -07:00
Victor Berchet
cf269d9ff4
refactor: add license header to JS files & format files ( #12081 )
2016-10-04 20:39:20 -07:00
Victor Berchet
50c37d45dc
refactor: simplify arrow functions ( #12057 )
2016-10-04 15:57:37 -07:00
Victor Berchet
a63359689f
fix(ShadowCss): fix attribute selectors in :host and :host-context ( #12056 )
...
Fix a regression introduced in #11917 while fixing #6249
2016-10-04 15:40:31 -07:00