Victor Savkin
eb2ceff4ba
fix(router): should reset location if a navigation by location is successful ( #13545 )
...
Closes #13491
2016-12-21 12:47:58 -08:00
Matias Niemelä
f49ab56160
fix(animations): always quote string map key values in AOT code ( #13602 )
2016-12-20 18:17:58 -08:00
Dzmitry Shylovich
c0f750af4e
fix(compiler): ignore @import in comments ( #13368 )
...
* refactor(compiler): clean up style url resolver
* fix(compiler): ignore @import in css comments
Closes #12196
2016-12-20 17:51:02 -08:00
Chuck Jazdzewski
e69c1fb36c
refactor(platform-browser): resolver merge conflict for tslint ( #13601 )
2016-12-20 17:49:25 -08:00
Georgios Kalpakas
9da4c259a5
feat(upgrade): support the `$doCheck()` lifecycle hook in `UpgradeComponent` ( #13015 )
2016-12-20 16:18:43 -08:00
Dzmitry Shylovich
fcd116fdc0
fix(common): throw an error if trackBy is not a function ( #13420 )
...
* fix(common): throw an error if trackBy is not a function
Closes #13388
* refactor(platform-browser): disable no-console rule in DomAdapter
2016-12-20 16:18:24 -08:00
Dzmitry Shylovich
383adc9ad9
fix(core): improve error message when component factory cannot be found ( #13541 )
...
Closes #12678
2016-12-20 16:17:22 -08:00
crisbeto
171a9bdc85
feat: update to rxjs@5.0.1 and unpin the rxjs peerDeps via ^5.0.1 ( #13572 )
...
Now that rxjs is stable and the rxjs team follows semver, we can update and unpin the dependency safely.
From now on the Angular application/library developers are in charge of controlling the rxjs version as long as it's newer than 5.0.1.
closes #13561
closes #13478
closes #13572
2016-12-19 16:24:53 -08:00
Chuck Jazdzewski
e49c7fae22
refactor(compiler-cli): support extracting the mesage bundle without writing a file ( #13580 )
2016-12-19 15:28:55 -08:00
Victor Berchet
6b65fc1286
feat(compiler-cli): private i18n API for the CLI ( #13536 )
...
Also change the Extractor API to align with the Codegen API (internal APIs)
2016-12-19 11:56:10 -08:00
Chuck Jazdzewski
0e3981afc1
fix(compiler-cli): produce metadata for .d.ts files without metadata ( #13526 )
...
Fixes #13307
Fixes #13473
Fixes #13521
2016-12-16 15:33:47 -08:00
Victor Berchet
e78508507d
fix(compiler): do not lex `}}` when interpolation is disabled ( #13531 )
...
* 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 #13525
2016-12-16 15:33:16 -08:00
Brandon
a23fa94ca8
fix(common): capitalize first letter of all words in TitleCasePipe ( #13511 )
2016-12-16 15:24:26 -08:00
Dzmitry Shylovich
4568d5ddac
refactor(core): fix typo ( #13515 )
...
Closes #13512
2016-12-16 15:21:58 -08:00
Janne Vanhala
c6e893953f
fix(upgrade): fix `registerForNg1Tests` ( #13522 )
...
Fix an issue in `registerForNg1Tests`, where it passes a `null` as
`ng1Injector` to `_bootstrapDone`. This causes a "TypeError: Cannot
read property 'get' of null" to be thrown from `_bootstrapDone`.
2016-12-16 15:14:16 -08:00
Marc Laval
55dfa1b69d
test(forms): refactor integration tests to improve speed ( #13500 )
2016-12-15 17:07:26 -08:00
Victor Berchet
0fe3cd9a4c
fix(i18n): add a default example to xmb placeholders ( #13507 )
...
Otherwise the TC would not be able to load the message
2016-12-15 15:33:42 -08:00
Matias Niemelä
0c19898694
fix(animations): allow players to be destroyed before initialized ( #13346 )
...
Closes #13293
Closes #13346
2016-12-15 14:18:57 -08:00
Chuck Jazdzewski
5b6e8ea3ec
refactor(compiler): format update ( #13506 )
2016-12-15 13:54:38 -08:00
Trotyl Yu
732f446ad2
docs(common): fix ngIf example ( #13496 )
2016-12-15 13:07:36 -08:00
Bowen Ni
f0e092515c
refactor(compiler): don't print stack trace on template parse errors ( #13390 )
2016-12-15 13:07:12 -08:00
Tobias Bosch
33910ddfc9
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-15 09:12:40 -08:00
Victor Berchet
6cefccb314
build: bump angular to 4.0.0-beta.0 & tsc-wrapped to 0.5.0
2016-12-14 16:42:44 -08:00
Victor Berchet
fa9e21e83c
fix(compiler): fix merge error in compiler_host
2016-12-14 15:36:49 -08:00
Chuck Jazdzewski
b6078f5887
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 15:28:51 -08:00
Victor Berchet
c65b4fa9dc
refactor: format & lint
2016-12-14 15:10:43 -08:00
Dzmitry Shylovich
169ed82900
feat(testing): add overrideTemplate method ( #13372 )
...
Closes #10685
2016-12-14 15:05:17 -08:00
Matias Niemelä
fd8e15b15d
chore(animations/aot): always export NoOpAnimationDriver ( #13480 )
2016-12-14 14:51:29 -08:00
Victor Berchet
aa40366a92
fix(compiler): fix simplify a reference without a name
...
closes #13470
2016-12-14 14:33:10 -08:00
Victor Berchet
40d8d9c3e3
fix(tsc-wrapped): generate metadata for exports without module specifier
...
fixes #13327
2016-12-14 14:33:04 -08:00
Victor Berchet
ee2ac025ef
fix(compiler): propagate exports when upgrading metadata to v2
2016-12-14 14:33:04 -08:00
Alex Rickabaugh
aa3769ba69
fix(compiler): resolver should merge host bindings and listeners ( #13474 )
...
fixes #13327
2016-12-14 14:31:57 -08:00
Victor Berchet
d4ddb6004e
refactor: format & lint
2016-12-14 13:05:04 -08:00
Peter Bacon Darwin
84400bcc86
docs(upgrade): fix UpgradeAdapter examples
...
closes #12675
2016-12-14 13:02:31 -08:00
Peter Bacon Darwin
42d9998cbb
docs(upgrade/upgrade_adapter): fix up references to AngularJS and Angular 2
2016-12-14 13:02:27 -08:00
Eudes Petonnet-Vincent
c18d2fe5e3
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 13:02:27 -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 #6629 , #7727 , #8729 , #9643 , #9649 , #12675
2016-12-14 13:02:27 -08:00
Peter Bacon Darwin
d6e5e9283c
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 13:02:27 -08:00
Peter Bacon Darwin
eab7e490c9
refactor(upgrade/util): remove unused `stringify()` method
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
Peter Bacon Darwin
79671a6f12
refactor(upgrade): add missing Angular 1 type info
2016-12-14 13:02:27 -08:00
Miško Hevery
a659259962
fix(core): detectChanges() doesn't work on detached instance
...
Closes #13426
Closes #13472
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 #13348
Closes #13440
2016-12-14 12:59:47 -08:00
Matias Niemelä
8395f0e138
perf(animations): always run the animation queue outside of zones
...
Related #12732
Closes #13440
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 #13249
Closes #13356
2016-12-14 12:58:41 -08:00
Victor Berchet
f238c8ac7a
Revert "fix(compiler): xmb `<ph>` tags should not self close ( #13413 )"
...
This reverts commit 4b3d135193
.
closes #13463
2016-12-14 12:54:58 -08:00
Victor Berchet
8c27c62fab
Revert "test(i18n): fix a typo in the reference xmb ( #13441 )"
...
This reverts commit a8d237581d
.
2016-12-14 12:54:50 -08:00
Bradford C. Smith
5031adc7a3
refactor(facade): don't expect super() to return a new Error object in BaseError ( #12600 )
...
Related to #12575
2016-12-14 11:54:57 -08:00
gary-b
821b8f09d6
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 08:52:07 -08:00
Dzmitry Shylovich
2bf1bbc071
fix(forms): introduce checkbox required validator
...
Closes #11459
Closes #13364
2016-12-14 08:44:24 -08:00
gary-b
7b0a86718c
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 08:34:19 -08:00
Pawel Kozlowski
3edca4d37e
fix(core): properly destroy embedded Views attatched to ApplicationRef ( #13459 )
...
Fixes #13062
2016-12-14 08:33:29 -08:00
Victor Berchet
a0a05041ac
refactor: format & lint
2016-12-13 17:44:52 -08:00
Hans
7256d0ede5
chore(internal API): introduce an internal API for ngtools. ( #13415 )
2016-12-13 17:35:06 -08:00
Hans
d62d89319e
fix(compiler): generated CSS files suffixed with ngstyle. ( #13353 )
...
Mirrors factories which ends in `ngfactory`.
Closes #13141 .
2016-12-13 17:34:46 -08:00
Tobias Bosch
f5f1d5f65c
fix(compiler): make sure provider values with `name` property don’t break.
...
Fixes #13394
Closes #13445
2016-12-13 17:25:59 -08:00
Victor Berchet
a8d237581d
test(i18n): fix a typo in the reference xmb ( #13441 )
2016-12-13 12:35:09 -08:00
Pawel Kozlowski
d036165a19
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-13 12:34:50 -08:00
Marc Laval
d17e690eb4
test(upgrade): fix failing test in browsers which do not support RAF
...
closes #13399
2016-12-13 12:28:44 -08:00
Chuck Jazdzewski
2b90cd532f
fix(compiler): narrow the span reported for invalid pipes
...
fixes #13326
closes #13411
2016-12-13 11:23:47 -08:00
Chuck Jazdzewski
3a64ad895a
fix(language-service): correctly type undefined
...
fixes #13412
closes #13414
2016-12-13 11:23:08 -08:00
Chuck Jazdzewski
9ec0a4e105
feat(language-service): warn when a method isn't called in an event ( #13437 )
...
Closes 13435
2016-12-13 11:20:45 -08:00
Victor Berchet
4b3d135193
fix(compiler): xmb `<ph>` tags should not self close ( #13413 )
2016-12-12 19:10:20 -08:00
Dzmitry Shylovich
1d0ed6f75f
docs(core): update OnDestroy description ( #13369 )
...
Closes #11228
2016-12-12 16:45:56 -08:00
Chuck Jazdzewski
6f330a5fc9
fix(language-service): treat string unions as strings ( #13406 )
...
Fixes #13403
2016-12-12 16:42:20 -08:00
Victor Berchet
7295a5e7f2
refactor: format and lint code
2016-12-12 11:30:25 -08:00
Misko Hevery
20bed46737
docs(Location): updating Location docs and adding example
...
closes #11500
2016-12-12 11:19:21 -08:00
Misko Hevery
2a5012d515
chore: Add @types/systemjs
2016-12-12 11:19:05 -08:00
Jesús Rodríguez
fb38fba8f9
chore: convert hash_location_strategy example to a tested spec
2016-12-12 11:19:05 -08:00
Dzmitry Shylovich
4c35be3e07
feat(forms): add novalidate by default ( #13092 )
2016-12-12 11:17:42 -08:00
Dzmitry Shylovich
e9f307f948
fix(forms): fix Validators.min/maxLength with FormArray ( #13095 )
...
Fixes #13089
2016-12-12 11:17:12 -08:00
Dzmitry Shylovich
2e500cc85b
fix(http): create a copy of headers when merge options ( #13365 )
...
Closes #11980
2016-12-12 11:16:34 -08:00
Dzmitry Shylovich
56dce0e26d
feat(common): export NgLocaleLocalization ( #13367 )
...
Closes #11921
2016-12-12 11:16:12 -08:00
Dzmitry Shylovich
8a8c53250e
fix(dom_adapter): remove logError from logGroup ( #12925 )
2016-12-09 15:40:26 -08:00
domusofsail
08ff2e5249
fix(http): check response body text against undefined ( #13017 )
2016-12-09 15:39:39 -08:00
Dzmitry Shylovich
a006c1418a
feat(router): routerLink add tabindex attribute ( #13094 )
...
Fixes #10895
2016-12-09 15:38:50 -08:00
Dzmitry Shylovich
90c223591f
feat(http): simplify URLSearchParams creation ( #13338 )
...
Closes #8858
2016-12-09 15:38:29 -08:00
Victor Berchet
aaf6e05f56
refactor(commonn): fix lint issues
...
closes #13352
2016-12-09 15:37:46 -08:00
Victor Berchet
3bee521aa4
fix(compiler): support dotted property binding
...
fixes angular/flex-layout#34
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 ( #13331 )
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
b4db73d0bf
feat: ngIf now supports else; saves condition to local var
...
NgIf syntax has been extended to support else clause to display template
when the condition is false. In addition the condition value can now
be stored in local variable, for later reuse. This is especially useful
when used with the `async` pipe.
Example:
```
<div *ngIf="userObservable | async; else loading; let user">
Hello {{user.last}}, {{user.first}}!
</div>
<template #loading>Waiting...</template>
```
closes #13061
closes #13297
2016-12-09 11:19:08 -08:00
Misko Hevery
e15a3f273f
fix: Better instructions on running examples and their tests
2016-12-09 11:16:49 -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 ( #12977 )
2016-12-09 10:45:48 -08:00
Matias Niemelä
f0b0762f4a
fix(animations): always cleanup players after they have finished internally ( #13334 )
...
Closes #13333
Closes #13334
2016-12-09 10:45:10 -08:00
Victor Berchet
b5c4bf1c59
refactor(router): misc refactoring ( #13330 )
2016-12-09 10:44:46 -08:00
maxime-allex
56c361ff6a
test(compiler): test i18n explicit id
...
closes #13272
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
Dzmitry Shylovich
72361fb68f
feat(platform browser): introduce Meta service ( #12322 )
2016-12-08 18:44:28 -08:00
Victor Berchet
5c6ec20c7e
refactor(router): simplify regexp
...
closes #11373
closes #13329
2016-12-08 18:43:17 -08:00
Andy Howell
440ef02f29
fix(router): add support for query params with mulitple values
...
closes #11373
2016-12-08 18:42:58 -08:00
Victor Berchet
4e3d58a792
Revert "fix(compiler): fix transpiled ES5 code ( #13322 )"
...
This reverts commit 4398056146
.
2016-12-08 17:53:58 -08:00
Victor Berchet
61d7c1e0b3
feat(common): add a `titlecase` pipe ( #13324 )
...
closes #11436
2016-12-08 16:33:24 -08:00
Victor Berchet
4398056146
fix(compiler): fix transpiled ES5 code ( #13322 )
...
fixes #13301
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
Jónatan Núñez
9591a08dfb
fix(router): Use T type in Resolve interface ( #13242 )
2016-12-08 11:24:38 -08:00
Alex Rickabaugh
13b41bd631
chore(release): update version of tsc-wrapped to 0.4.2
2016-12-07 13:54:22 -08:00