505 Commits

Author SHA1 Message Date
Victor Berchet
e78508507d fix(compiler): do not lex }} when interpolation is disabled ()
* doc(compiler): fix the ICU expander API docs

* test(compiler): add lexer and parser specs

* fix(compiler): do not lex `}}` when interpolation is disabled

fix 
2016-12-16 15:33:16 -08:00
Marc Laval
55dfa1b69d test(forms): refactor integration tests to improve speed () 2016-12-15 17:07:26 -08:00
Victor Berchet
0fe3cd9a4c fix(i18n): add a default example to xmb placeholders ()
Otherwise the TC would not be able to load the message
2016-12-15 15:33:42 -08:00
Chuck Jazdzewski
5b6e8ea3ec refactor(compiler): format update () 2016-12-15 13:54:38 -08:00
Bowen Ni
f0e092515c refactor(compiler): don't print stack trace on template parse errors () 2016-12-15 13:07:12 -08:00
Tobias Bosch
33910ddfc9 refactor(compiler): store metadata of top level symbols also in summaries ()
This allows a build using summaries to not need .metadata.json files at all
any more.

Part of 
2016-12-15 09:12:40 -08:00
Chuck Jazdzewski
b6078f5887 fix(compiler): update to metadata version 3 ()
This change retracts support for metadata version 2.

The collector used to produce version 2 metadata was incomplete
and can cause the AOT compiler to fail to resolve symbols or
produce other spurious errors.

All libraries compiled and published with 2.3.0 ngc will need
to be recompiled and updated with this change.
2016-12-14 15:28:51 -08:00
Victor Berchet
c65b4fa9dc refactor: format & lint 2016-12-14 15:10:43 -08:00
Victor Berchet
aa40366a92 fix(compiler): fix simplify a reference without a name
closes 
2016-12-14 14:33:10 -08:00
Alex Rickabaugh
aa3769ba69 fix(compiler): resolver should merge host bindings and listeners ()
fixes 
2016-12-14 14:31:57 -08:00
Victor Berchet
d4ddb6004e refactor: format & lint 2016-12-14 13:05:04 -08:00
Eudes Petonnet-Vincent
d91a86aac6 fix(upgrade): fix downgrade content projection and injector inheritance
- Full support for content projection in downgraded Angular 2
  components. In particular, this enables multi-slot projection and
  other features on <ng-content>.
- Correctly wire up hierarchical injectors for downgraded Angular 2
  components: downgraded components inherit the injector of the first
  other downgraded Angular 2 component they find up the DOM tree.

Closes , , , , , 
2016-12-14 13:02:27 -08:00
Peter Bacon Darwin
3e90605db9 refactor(compiler/template_parser): export createElementCssSelector
This is needed in `ngUpgrade`.
2016-12-14 13:02:27 -08:00
Miško Hevery
a659259962 fix(core): detectChanges() doesn't work on detached instance
Closes 
Closes 
2016-12-14 13:01:06 -08:00
Matias Niemelä
b56474d067 fix(animations): throw errors and normalize offset beyond the range of [0,1]
Closes 
Closes 
2016-12-14 12:59:47 -08:00
Matias Niemelä
8395f0e138 perf(animations): always run the animation queue outside of zones
Related 
Closes 
2016-12-14 12:59:36 -08:00
Chuck Jazdzewski
dd0519abad fix(compiler): emit quoted object literal keys if the source is quoted
feat(tsc-wrapped): recored when to quote a object literal key

Collecting quoted literals is off by default as it introduces
a breaking change in the .metadata.json file. A follow-up commit
will address this.

Fixes 
Closes 
2016-12-14 12:58:41 -08:00
Victor Berchet
f238c8ac7a Revert "fix(compiler): xmb <ph> tags should not self close ()"
This reverts commit 4b3d13519399f8db5ead50ab24ee6e5a64acbe43.
closes 
2016-12-14 12:54:58 -08:00
Victor Berchet
8c27c62fab Revert "test(i18n): fix a typo in the reference xmb ()"
This reverts commit a8d237581d4df742bb1e36be56518f383bf3d19f.
2016-12-14 12:54:50 -08:00
Victor Berchet
a0a05041ac refactor: format & lint 2016-12-13 17:44:52 -08:00
Hans
d62d89319e fix(compiler): generated CSS files suffixed with ngstyle. ()
Mirrors factories which ends in `ngfactory`.

Closes .
2016-12-13 17:34:46 -08:00
Victor Berchet
a8d237581d test(i18n): fix a typo in the reference xmb () 2016-12-13 12:35:09 -08:00
Chuck Jazdzewski
2b90cd532f fix(compiler): narrow the span reported for invalid pipes
fixes 
closes 
2016-12-13 11:23:47 -08:00
Victor Berchet
4b3d135193 fix(compiler): xmb <ph> tags should not self close () 2016-12-12 19:10:20 -08:00
Victor Berchet
3bee521aa4 fix(compiler): support dotted property binding
fixes 
2016-12-09 15:37:41 -08:00
Victor Berchet
95f48292b1 test(Selector): add a test for dotted attribute names 2016-12-09 15:37:41 -08:00
Victor Berchet
04cfa1ebdf refactor(Compiler): cleanup 2016-12-09 15:37:41 -08:00
Victor Berchet
4022173d1e fix(compiler): fix PR 13322 () 2016-12-09 11:22:44 -08:00
Victor Berchet
c8baf51f4f style: clang-format the code 2016-12-09 11:19:55 -08:00
Misko Hevery
213c713409 fix: Better error when directive not listed in NgModule.declarations 2016-12-09 11:16:28 -08:00
Dzmitry Shylovich
9a8423da36 fix(selector): SelectorMatcher match elements with :not selector () 2016-12-09 10:45:48 -08:00
Matias Niemelä
f0b0762f4a fix(animations): always cleanup players after they have finished internally ()
Closes 
Closes 
2016-12-09 10:45:10 -08:00
maxime-allex
56c361ff6a test(compiler): test i18n explicit id
closes 
2016-12-09 10:43:57 -08:00
maxime-allex
562f7a2f8b feat(compiler): digest methods return i18nMessage id if sets 2016-12-09 10:43:47 -08:00
maxime-allex
6dd5201765 feat(compiler): add id property to i18nMessage 2016-12-09 10:43:47 -08:00
Victor Berchet
4e3d58a792 Revert "fix(compiler): fix transpiled ES5 code ()"
This reverts commit 43980561467b705516940a9cf32610ccf6c84585.
2016-12-08 17:53:58 -08:00
Victor Berchet
4398056146 fix(compiler): fix transpiled ES5 code ()
fixes 

The inner class would transpile to a nested function declaration which is not
allowed in ES5.

See http://eslint.org/docs/rules/no-inner-declarations
2016-12-08 15:02:59 -08:00
Chuck Jazdzewski
4a09c81724 fix(language-service): do not throw for invalid metadata ()
Fixes 
2016-12-06 17:11:09 -08:00
Miško Hevery
16efb13dd1 fix: display framework version on bootstrapped component () 2016-12-06 16:21:07 -08:00
Chuck Jazdzewski
f31c9470fa fix(compiler): short-circut expressions with an index ()
Fixes 
2016-12-06 10:40:15 -08:00
Tobias Bosch
5614c4ff0f fix(compiler): serialize any StaticSymbol correctly, not matter in which context. 2016-12-05 14:20:01 -08:00
Tobias Bosch
c3065aac7a refactor(compiler): replace isStaticSymbol with instanceof StaticSymbol 2016-12-05 14:20:01 -08:00
Chuck Jazdzewski
3ff6554cbc fix(language-service): update to use CompilerHost from compiler-cli () 2016-12-02 14:34:16 -08:00
Tobias Bosch
75d1617b63 fix(compiler): include the summaries of reexported modules / directives / pipes ()
Only if these are not part of the sources.
2016-12-02 10:08:46 -08:00
Tobias Bosch
614a35d539 feat(compiler): read and write .ngsummary.json files
When compiling libraries, this feature extracts the minimal information
from the directives/pipes/modules of the library into `.ngsummary.json` files,
so that applications that use this library only need to be recompiled
if one of the summary files change, but not on every change
of the libraries (e.g. one of the templates).

Only works if individual codegen for libraries is enabled,
see the `generateCodeForLibraries: false` option.

Closes 
2016-12-01 14:49:52 -08:00
Tobias Bosch
9ab401f4d3 refactor(compiler): simplify NgModuleSymmaryMetadata
- merge `NgModuleInjectorSummary` and `NgModuleDirectiveSummary`
- remove `directiveLoaders` from the summary
2016-12-01 14:49:52 -08:00
Chuck Jazdzewski
43c0e9a6bb fix(compiler): fix performance regression caused by 5b0f9e2
Fixes 
2016-11-30 14:55:56 -08:00
Victor Savkin
e628b66cca feat(build): record angular version in the dom () 2016-11-30 13:52:08 -08:00
Tobias Bosch
3e73bea3e7 refactor(compiler): convert metadata classes used in summaries into interfaces ()
Part of 
2016-11-30 10:52:51 -08:00
Tobias Bosch
627282d2c8 fix(compiler): correctly evaluate references to static functions () 2016-11-29 12:02:50 -08:00