Matias Niemelä
b2f366b3b7
fix(animations): only use the WA-polyfill alongside AnimationBuilder ( #22143 )
...
This patch removes the need to include the Web Animations API Polyfill
(web-animations-js) as a dependency. Angular will now fallback to using
CSS Keyframes in the event that `element.animate` is no longer supported
by the browser.
In the event that an application does use `AnimationBuilder` then the
web-animations-js polyfill is required to enable programmatic,
position-based access to an animation.
Closes #17496
PR Close #22143
2018-02-22 16:07:53 -08:00
Jason Aden
45eff4cc65
fix(router): don't mutate route configs ( #22358 )
...
Fixes #22203
PR Close #22358
2018-02-22 13:35:38 -08:00
Marc Laval
b3ffeaa22b
fix(ivy): OnDestroy hook should not be called twice for a directive on an element ( #22350 )
...
PR Close #22350
2018-02-22 13:35:17 -08:00
Trotyl
b7544cccc6
feat(core): support metadata reflection for native class types ( #22356 )
...
closes #21731
PR Close #22356
2018-02-22 13:22:03 -08:00
Marc Laval
894b098eb3
test(ivy): add missing tests on directive lifecycle hooks ( #22368 )
...
PR Close #22368
2018-02-22 11:21:15 -08:00
Fabian Wiles
e86b64b620
feat(forms): allow markAsPending to emit events ( #20212 )
...
closes #17958
BREAKING CHANGE:
- `AbstractControl#statusChanges` now emits an event of `'PENDING'` when you call `AbstractControl#markAsPending`
- Previously it did not emit an event when you called `markAsPending`
- To migrate you would need to ensure that if you are filtering or checking events from `statusChanges` that you account for the new event when calling `markAsPending`
PR Close #20212
2018-02-22 11:15:33 -08:00
Victor Berchet
90e9c59e23
Revert "feat(core): support metadata reflection for native class types ( #22356 )"
...
This reverts commit 5c89d6bffa
.
2018-02-22 10:26:06 -08:00
Martin Probst
ca06af40f4
build: allow passing node options to ngc. ( #22245 )
...
PR Close #22245
2018-02-22 10:20:04 -08:00
Trotyl
5c89d6bffa
feat(core): support metadata reflection for native class types ( #22356 )
...
closes #21731
PR Close #22356
2018-02-21 16:09:27 -08:00
Philip Pham
3e6a86fb0a
fix(forms): set state before emitting a value from ngModelChange ( #21514 )
...
Closes #21513 .
PR Close #21514
2018-02-21 15:59:33 -08:00
Trotyl
a7ebf5aadd
fix(core): properly handle function without prototype in reflector ( #22284 )
...
closes #19978
PR Close #22284
2018-02-21 14:52:04 -08:00
Ricardo M
9e6268ba59
docs(http): fix a typo in code comment ( #22327 )
...
PR Close #22327
2018-02-21 11:06:06 -08:00
Alex Eagle
236a9320df
build: update tsickle dep from compiler-cli ( #22295 )
...
PR Close #22295
2018-02-20 15:40:44 -08:00
Alex Eagle
28ac24444f
fix(compiler-cli): add missing entry point to package, update tsickle ( #22295 )
...
PR Close #22295
2018-02-20 15:40:44 -08:00
Chuck Jazdzewski
99909bbf2c
feat(ivy): generate pipe references and definitions ( #22034 )
...
PR Close #22034
2018-02-20 13:58:03 -08:00
Marc Laval
ee60bb5b36
fix(ivy): pureFunction8 should update the right bindings ( #22313 )
...
PR Close #22313
2018-02-20 11:36:50 -08:00
Frederik Prijck
e2bdef4cf6
test(language-service): fix minor typos ( #21372 )
...
PR Close #21372
2018-02-20 10:08:55 -08:00
Victor Berchet
8115edc82f
fix(common): then and else template might be set to null ( #22298 )
...
PR Close #22298
2018-02-18 19:25:28 -08:00
Victor Berchet
a8b5465e24
fix(ivy): update master with renamings ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
9ce495b3d8
refactor(ivy): simplify interpolation instructions ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
d40263447d
refactor(ivy): move get functions next to their underlying variable ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
31c5c1060a
docs(ivy): update the API docs instructions to add details about removing attributes ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
c9ebd60435
refactor(ivy): interpolatiom instructions do not support NO_CHANGE at input. ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
5a14e2238f
refactor(ivy): split the `memory` instruction into `store` and `load` ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
WilliamKoza
3ceee99e22
feat(compiler-cli): Check unvalidated combination of ngc and TypeScript ( #22293 )
...
closes #20669
PR Close #22293
2018-02-18 15:12:46 -08:00
Victor Berchet
c30d329faa
fix(ivy): fix merge errors (master is broken) ( #22291 )
...
PR Close #22291
2018-02-18 15:03:39 -08:00
Trotyl
991300b86c
feat(platform-browser): do not throw error when Hammer.js not loaded ( #22257 )
...
closes #16992
PR Close #22257
2018-02-18 13:29:14 -08:00
Trotyl
67cf11d071
feat(common): better error message when non-template element used in NgIf ( #22274 )
...
closes #16410
PR Close #22274
2018-02-18 13:26:50 -08:00
Kara Erickson
49082d7ab2
feat(ivy): support host attributes ( #22213 )
...
PR Close #22213
2018-02-18 13:22:38 -08:00
Kara Erickson
6b627f67db
test(ivy): add missing host listener and host attribute binding tests ( #22213 )
...
PR Close #22213
2018-02-18 13:22:38 -08:00
Kara Erickson
5c320b4c2a
test(ivy): add missing host binding and query tests ( #22213 )
...
PR Close #22213
2018-02-18 13:22:34 -08:00
Misko Hevery
ac2b04a5ab
test(ivy): Add small_app spec for sprint #3 ( #22018 )
...
PR Close #22018
2018-02-18 13:18:54 -08:00
Misko Hevery
a63b764b54
test(ivy): move compiler canonical specs into a single directory ( #22018 )
...
PR Close #22018
2018-02-18 13:18:54 -08:00
Kara Erickson
f693be3996
feat(ivy): add pureFunction0 instruction ( #22214 )
...
PR Close #22214
2018-02-16 18:03:55 -08:00
Kara Erickson
a73d5308e0
refactor(ivy): rename objectLiteral to pureFn to prep for pipes ( #22214 )
...
PR Close #22214
2018-02-16 18:03:55 -08:00
Matias Niemelä
e1bf067090
fix(animations): report correct totalTime value even during noOp animations ( #22225 )
...
This patch ensures that if the NoopAnimationsModule is used then it will
correctly report the associated `totalTime` property within the emitted
AnimationEvent instance when an animation event trigger is fired.
BREAKING CHANGE: When animation is trigged within a disabled zone, the
associated event (which an instance of AnimationEvent) will no longer
report the totalTime as 0 (it will emit the actual time of the
animation). To detect if an animation event is reporting a disabled
animation then the `event.disabled` property can be used instead.
PR Close #22225
2018-02-16 18:03:31 -08:00
Marc Laval
dfa2fb95d5
test(ivy): clean the imported renderer2 ( #22255 )
...
PR Close #22255
2018-02-16 15:11:23 -08:00
Trotyl Yu
2639b4bffb
fix(common): correct mapping of Observable methods ( #20518 )
...
fixes #20516
PR Close #20518
2018-02-16 15:10:31 -08:00
Oussama Ben Brahim
f1a063298e
feat(core): set preserveWhitespaces to false by default ( #22046 )
...
Fixes #22027
PR Close #22046
2018-02-16 09:06:14 -08:00
Victor Berchet
d241532488
docs(ivy): add a note about exporting top level variables ( #22234 )
...
PR Close #22234
2018-02-15 16:16:40 -08:00
Alex Rickabaugh
f755db78dc
fix(core): require factory to be provided for shakeable InjectionToken ( #22207 )
...
InjectionToken can be created with an ngInjectableDef, and previously
this allowed the full expressiveness of @Injectable. However, this
requires a runtime reflection system in order to generate factories
from expressed provider declarations.
Instead, this change requires scoped InjectionTokens to provide the
factory directly (likely using inject() for the arguments), bypassing
the need for a reflection system.
Fixes #22205
PR Close #22207
2018-02-15 16:16:16 -08:00
Victor Berchet
5dd2b5135d
refactor(ivy): rename `bindX()` functions to `interpolationX()` ( #22229 )
...
rationale: remove the confusion with `bind()` and `bind0()`
PR Close #22229
2018-02-15 14:20:53 -08:00
Alex Rickabaugh
7ac34e42a0
feat: allow direct scoping of @Injectables to the root injector ( #22185 )
...
@Injectable() supports a scope parameter which specifies the target module.
However, it's still difficult to specify that a particular service belongs
in the root injector. A developer attempting to ensure that must either
also provide a module intended for placement in the root injector or target
a module known to already be in the root injector (e.g. BrowserModule).
Both of these strategies are cumbersome and brittle.
Instead, this commit adds a token APP_ROOT_SCOPE which provides a
straightforward way of targeting the root injector directly, without
requiring special knowledge of modules within it.
PR Close #22185
2018-02-15 14:20:27 -08:00
Alex Eagle
029dbf0e18
feat(bazel): ng_module produces bundle index ( #22176 )
...
It creates the bundle index .d.ts and .metadata.json files.
The names are based on the ng_module target.
PR Close #22176
2018-02-15 14:08:53 -08:00
Alex Eagle
bba65e0f41
feat(bazel): introduce a binary stamping feature ( #22176 )
...
This grabs version control metadata and makes it available in the build, eg. to put in the version field for released artifacts
PR Close #22176
2018-02-15 14:08:53 -08:00
Alex Eagle
a069e08354
refactor(bazel): convert most ts_library to ng_module ( #22176 )
...
This is necessary so we can produce ng metadata for our packages that are published as libraries
PR Close #22176
2018-02-15 14:08:53 -08:00
Adrien Boullé
020338230f
style: fix typos boostrap to bootstrap ( #21917 )
...
PR Close #21917
2018-02-15 09:54:00 -08:00
Victor Berchet
a1d86daa71
refactor(ivy): assertion ( #22189 )
...
Encourage the use of message to explain the assertion
PR Close #22189
2018-02-15 09:53:05 -08:00
Matias Niemelä
831592c381
Revert "style: fix typos boostrap to bootstrap ( #21917 )"
...
This reverts commit 363498b6b4
.
2018-02-14 22:56:44 -05:00
Matias Niemelä
f628797d91
Revert "refactor(ivy): assertion ( #22189 )"
...
This reverts commit 0b683123d2
.
2018-02-14 22:56:11 -05:00