Victor Berchet
3f178410c3
fix(i18n): add a default example to xmb placeholders ( #13507 )
...
Otherwise the TC would not be able to load the message
2016-12-19 17:09:40 -08:00
Matias Niemelä
b36f4bc00d
fix(animations): allow players to be destroyed before initialized ( #13346 )
...
Closes #13293
Closes #13346
2016-12-19 17:09:40 -08:00
Chuck Jazdzewski
355c537883
refactor(compiler): format update ( #13506 )
2016-12-19 17:09:39 -08:00
Bowen Ni
f277303ca3
refactor(compiler): don't print stack trace on template parse errors ( #13390 )
2016-12-19 17:09:39 -08:00
Alex Eagle
50afbe094f
fix(build): use bash string comparison operator ( #13502 )
2016-12-19 17:09:39 -08:00
Alex Eagle
15ea758d01
feature(DEVELOPER.md): add easy way to publish personal snapshot builds ( #13469 )
2016-12-19 17:09:39 -08:00
Tobias Bosch
1f0f429f2a
refactor(compiler): store metadata of top level symbols also in summaries ( #13289 )
...
This allows a build using summaries to not need .metadata.json files at all
any more.
Part of #12787
2016-12-19 17:09:39 -08:00
Victor Berchet
dbb364e23a
docs(changelog): minor updates to 2.3.1 changelog
2016-12-14 21:57:56 -08:00
Victor Berchet
540b1197a6
fix(form): fix merge errors
2.3.1
2016-12-14 18:22:03 -08:00
Victor Berchet
d30cc8461b
docs(changelog): add changelog for 2.3.1
2016-12-14 18:14:34 -08:00
Victor Berchet
f27954e62c
build: bump angular to 2.3.1 & tsc-wrapped to 0.5.0
2016-12-14 18:11:35 -08:00
Victor Berchet
69b52eb2b3
fix(compiler): fix merge error in compiler_host
2016-12-14 18:08:54 -08:00
Chuck Jazdzewski
b9b557cdb0
fix(compiler): update to metadata version 3 ( #13464 )
...
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 18:08:48 -08:00
Victor Berchet
a72a002a8d
refactor: format & lint
2016-12-14 18:08:43 -08:00
Matias Niemelä
a0437f8c9d
chore(animations/aot): always export NoOpAnimationDriver ( #13480 )
2016-12-14 18:08:36 -08:00
Victor Berchet
1c279b3264
fix(compiler): fix simplify a reference without a name
...
closes #13470
2016-12-14 18:08:32 -08:00
Victor Berchet
cd03c77364
fix(tsc-wrapped): generate metadata for exports without module specifier
...
fixes #13327
2016-12-14 18:08:29 -08:00
Victor Berchet
f6ef7d6e5a
fix(compiler): propagate exports when upgrading metadata to v2
2016-12-14 18:08:25 -08:00
Alex Rickabaugh
6aeaca3fb4
fix(compiler): resolver should merge host bindings and listeners ( #13474 )
...
fixes #13327
2016-12-14 18:07:41 -08:00
Peter Bacon Darwin
af62050729
docs(upgrade): fix UpgradeAdapter examples
...
closes #12675
2016-12-14 18:02:26 -08:00
Peter Bacon Darwin
cb69656b56
docs(upgrade/upgrade_adapter): fix up references to AngularJS and Angular 2
2016-12-14 18:02:14 -08:00
Eudes Petonnet-Vincent
2fc0560988
feat(upgrade): enable Angular 1 unit testing of upgrade module
...
- New method `UpgradeAdapter.registerForNg1Tests(modules)` declares the
Angular 1 upgrade module and provides it to the `angular.mock.module()`
helper.
This prevents the need to bootstrap the entire hybrid for every test.
Closes #5462 , #12675
2016-12-14 18:02:05 -08:00
Eudes Petonnet-Vincent
86c50983d7
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 #6629 , #7727 , #8729 , #9643 , #9649 , #12675
2016-12-14 17:56:20 -08:00
Peter Bacon Darwin
21976446e0
refactor(upgrade/upgrade_adapter): use Deferred helper
...
Making Angular 1's `$compile` asynchronous by chaining injector promises
in linking functions can cause flickering views in applications.
2016-12-14 17:56:16 -08:00
Peter Bacon Darwin
998ce9ad7e
refactor(upgrade/util): remove unused stringify() method
2016-12-14 17:56:11 -08:00
Peter Bacon Darwin
111523677c
refactor(compiler/template_parser): export createElementCssSelector
...
This is needed in `ngUpgrade`.
2016-12-14 17:56:06 -08:00
Peter Bacon Darwin
2d74a224d0
refactor(upgrade): add missing Angular 1 type info
2016-12-14 17:55:56 -08:00
Miško Hevery
4d6ac9d414
fix(core): detectChanges() doesn't work on detached instance
...
Closes #13426
Closes #13472
2016-12-14 17:55:38 -08:00
Matias Niemelä
6557bc34f6
fix(animations): throw errors and normalize offset beyond the range of [0,1]
...
Closes #13348
Closes #13440
2016-12-14 17:55:34 -08:00
Matias Niemelä
e2622add07
perf(animations): always run the animation queue outside of zones
...
Related #12732
Closes #13440
2016-12-14 17:55:27 -08:00
Chuck Jazdzewski
ecfad467a1
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 #13249
Closes #13356
2016-12-14 17:55:22 -08:00
Victor Berchet
5918133784
Revert "fix(compiler): xmb <ph> tags should not self close ( #13413 )"
...
This reverts commit 4b3d135193 .
closes #13463
2016-12-14 17:55:18 -08:00
Victor Berchet
700bce9ec1
Revert "test(i18n): fix a typo in the reference xmb ( #13441 )"
...
This reverts commit a8d237581d .
2016-12-14 17:55:14 -08:00
Bradford C. Smith
a64a35a8c1
refactor(facade): don't expect super() to return a new Error object in BaseError ( #12600 )
...
Related to #12575
2016-12-14 17:55:10 -08:00
gary-b
b3dcff0cc1
fix(forms): ensure select[multiple] retains selections
...
If you bound an array to select[multiple] via ngModel and subsequently
changed the options to select from, the UI would drop any selections
made since by the user. This was due to
SelectMultipleControlValueAccessor not keeping a reference to the new
model arrays it generated when users interacted with the select control.
Update code to keep the reference.
Closes #12527
Closes #12654
2016-12-14 17:55:02 -08:00
Dzmitry Shylovich
124267c87a
fix(forms): introduce checkbox required validator
...
Closes #11459
Closes #13364
2016-12-14 17:52:53 -08:00
gary-b
547bfa92ef
fix (forms): clear selected options when model is not an array ( #12519 )
...
When an invalid model value (eg empty string) was preset ngModel on
select[multiple] would throw an error, which is inconsistent with how it
works on other user input elements. Setting the model value to null or
undefined would also have no effect on what was already selected in the
UI. Fix this by clearing selected options when model set to null,
undefined or a type other than Array.
Closes #11926
2016-12-14 17:52:02 -08:00
Pawel Kozlowski
d40bbf4d5c
fix(core): properly destroy embedded Views attatched to ApplicationRef ( #13459 )
...
Fixes #13062
2016-12-14 17:51:56 -08:00
Victor Berchet
94b7031fe9
refactor: format & lint
2016-12-14 17:51:48 -08:00
Hans
df0bf1dd74
chore(internal API): introduce an internal API for ngtools. ( #13415 )
2016-12-14 17:51:40 -08:00
Hans
c8a9b70890
fix(compiler): generated CSS files suffixed with ngstyle. ( #13353 )
...
Mirrors factories which ends in `ngfactory`.
Closes #13141 .
2016-12-14 17:50:29 -08:00
Tobias Bosch
efa2d80df8
fix(compiler): make sure provider values with name property don’t break.
...
Fixes #13394
Closes #13445
2016-12-14 17:50:22 -08:00
Victor Berchet
a58e5efd09
test(i18n): fix a typo in the reference xmb ( #13441 )
2016-12-14 17:50:12 -08:00
Pawel Kozlowski
86cf0ef892
refactor: remove intl from facades ( #13404 )
...
The existing intl.ts file is not a facade but
rather a set of utils used by i18n-related pipes only.
As such moving it back to common module so those utils
are not used accidently from other places.
2016-12-14 17:50:02 -08:00
Marc Laval
5c568fab86
test(upgrade): fix failing test in browsers which do not support RAF
...
closes #13399
2016-12-14 17:49:52 -08:00
Marc Laval
566104504c
ci(browser providers): update browsers in SL and BS ( #13431 )
2016-12-14 17:49:37 -08:00
Chuck Jazdzewski
307d305b2d
fix(compiler): narrow the span reported for invalid pipes
...
fixes #13326
closes #13411
2016-12-14 17:49:05 -08:00
Chuck Jazdzewski
0a7364feea
fix(language-service): correctly type undefined
...
fixes #13412
closes #13414
2016-12-14 17:40:58 -08:00
Victor Berchet
4544b1d7a6
fix(compiler): xmb <ph> tags should not self close ( #13413 )
2016-12-14 17:39:51 -08:00
Dzmitry Shylovich
9e0e6b59d1
docs(core): update OnDestroy description ( #13369 )
...
Closes #11228
2016-12-14 17:39:45 -08:00