785b7b640e
fix(router): Route.isActive also compares query params ( #12321 )
2016-11-11 13:23:47 -08:00
e5a753e111
fix(router): router should not swallow "unhandled" errors
...
closes #12802
2016-11-11 13:22:19 -08:00
768cddbe62
fix(events): provide the ability to register global hammer.js events
...
closes #12797
2016-11-11 11:15:49 -08:00
92f244aa26
refactor(events): remove facade and clean up
2016-11-11 11:15:43 -08:00
2a4bf9a0df
fix(router): avoid router initialization for non root components
...
closes #12338
closes #12814
2016-11-11 11:15:17 -08:00
45ddd6ba78
cleanup(forms): remove facade ( #12804 )
2016-11-11 10:47:34 -08:00
7886561997
fix(router): check if windows.console exists before using it ( #12348 )
2016-11-11 10:46:53 -08:00
752edca81b
test(core): ngOnDestroy called before output events are detached ( #9946 )
...
closes #6984
closes #5436
2016-11-11 10:27:32 -08:00
1bd858fb43
build(examples): upgrade to protractor 4.0.9 ( #12803 )
...
closes #12798
2016-11-10 18:13:11 -08:00
fcb4e66493
refactor(compiler): introduce summaries for metadata ( #12799 )
...
This does not yet introduce loading / serialization of summaries.
Part of #12787
2016-11-10 16:27:53 -08:00
ef881475e9
fix(forms): check if registerOnValidatorChange exists on validator before trying to invoke it ( #12801 )
...
closes #12593
2016-11-10 16:20:59 -08:00
2aba8b0ff2
fix(common): no TZ Offset added by DatePipe for dates without time ( #12380 )
2016-11-10 14:57:04 -08:00
77dc1ab675
fix(router): throw an error when encounter undefined route ( #12389 )
2016-11-10 14:55:10 -08:00
3052fb234f
fix(router): ignore null or undefined query parameters ( #12333 )
2016-11-10 14:41:19 -08:00
79383ce150
refactor(compiler): never create CompileDirectiveMetadata with not loaded resources ( #12788 )
...
Part of #12787
2016-11-10 14:07:30 -08:00
c3c0e2e2a2
refactor(compiler): add span
to TemplateBinding
( #12792 )
...
fix(compiler): corrected error location for implicit templates expressions
2016-11-10 13:15:09 -08:00
19e869e7c9
fix(animations): ensure animations work with web-workers ( #12656 )
2016-11-10 11:53:50 -08:00
7cab30f85d
refactor(compiler-cli): add position data to static reflector errors ( #12782 )
2016-11-09 16:29:22 -08:00
73407351e7
feat(router): add support for custom url matchers
...
Closes #12442
Closes #12772
2016-11-09 16:24:58 -08:00
2c110931f8
fix(router): do not require the creation of empty-path routes when no url left
...
Closes #12133
2016-11-09 16:24:49 -08:00
2ced2a8a5a
refactor(compiler): misc updates ( #12773 )
2016-11-09 16:23:41 -08:00
634b3bb88b
feat(core): map 'for' attribute to 'htmlFor' property ( #10546 )
...
This improves ergonomics a bit by allowing people to write:
`<label [for]="ctxProp"></label>`.
This is similar to the existing class -> className mapping.
Closes #7516
2016-11-09 15:21:27 -08:00
4595a61aeb
refactor(compiler-cli): refactor imports in codegen to enable rollup ( #12781 )
2016-11-09 15:17:24 -08:00
f80a157b65
fix(animations): ensure web-animations are caught within the Angular zone
...
Closes #11881
Closes #11712
Closes #12355
Closes #11881
Closes #12546
Closes #12707
Closes #12774
2016-11-09 15:16:34 -08:00
6e35d13fbc
feat(router): add a provider making angular1/angular2 integration easier ( #12769 )
2016-11-09 13:33:33 -08:00
fe35bc34f6
fix(animations): allow animations to be destroyed manually ( #12719 )
...
Closes #12456
Closes #12719
2016-11-08 16:21:28 -08:00
ad3bf6c54f
fix(core): apply host attributes to root elements ( #12761 )
...
Fixes #12744
2016-11-08 15:46:55 -08:00
a0e9fde653
fix(animations): always normalize style properties and values during compilation ( #12755 )
...
Closes #11582
Closes #12481
Closes #12755
2016-11-08 15:45:30 -08:00
3dc61779f0
fix(DatePipe): handle empty string ( #12374 )
2016-11-08 15:45:12 -08:00
09092ac3c2
fix(forms): getRawValue returns any instead of Object ( #12599 )
2016-11-08 15:44:36 -08:00
778e6ad3b4
refactor: cleanup ICU message syntax
2016-11-08 15:44:18 -08:00
55dc0e4a5f
fix(compiler): use the other case by default in ICU messages
2016-11-08 15:44:18 -08:00
4708b248d5
fix(common): I18nSelectPipe selects other case on default
2016-11-08 15:44:18 -08:00
7694f974af
refactor: remove some facades ( #12731 )
2016-11-08 15:43:24 -08:00
acbf1d859c
fix(core): fix pseudo-selector shimming ( #12754 )
...
fixes #12730
fixes #12354
2016-11-07 13:56:04 -08:00
f3793b5953
fix(NgClass): throw a descriptive error when CSS class is not a string ( #12662 )
...
Fixes #12586
2016-11-07 12:23:31 -08:00
22c021c57f
fix(compiler): support more than 9 interpolations ( #12710 )
...
Fixes #10253
2016-11-07 12:23:03 -08:00
d8f23f4b7f
fix(common): NgSwitch
- don’t create the default case if another case matches ( #12726 )
...
This also simplifies the implementation of `NgSwitch`.
Closes #11297
Closes #9420
2016-11-07 12:22:36 -08:00
89fd54e8e3
docs(url_tree):fix typo(UrlSegment path property's comment part -> path) ( #12728 )
2016-11-07 10:27:47 -08:00
77cbf7f2bb
fix(closure): suppress two more closure compiler checks in codegen ( #12698 )
2016-11-04 15:18:05 -07:00
383f23b578
fix(animations): always trigger animations after the change detection check ( #12713 )
...
This patch ensures that animations are run outside of change detection
thus allowing for start and done callbacks to modify application data
without causing a cycle loop.
Closes #12713
2016-11-04 15:15:27 -07:00
2a3f4d7b17
refactor: kill MapWrapper
2016-11-04 13:27:38 -07:00
ec92f4b198
refactor: remove keys()
and values()
from MapWrapper
2016-11-04 13:27:38 -07:00
121e5080aa
fix(http): preserve header case when copying headers ( #12697 )
2016-11-04 13:26:38 -07:00
fe1d0e29c5
feat(UpgradeComponent): add support for require
...
This commit also adds/improves/fixes some `UpgradeComponent` tests.
2016-11-04 11:16:28 -07:00
469010ea8e
feat(UpgradeComponent): add/improve support for lifecycle hooks
...
Add support for the `$postDigest()` and `$onDestroy()` lifecycle hooks.
Better align the behavior of the `$onChanges()` and `$onInit()` lifecycle hooks
with Angular 1.x:
- Call `$onInit()` before pre-linking.
- Always instantiate the controller before calling `$onChanges()`.
2016-11-04 11:16:28 -07:00
f0cdb428f5
fix(compiler): don't convert undefined to null literals ( #11503 )
...
Fixes #11493
2016-11-04 10:55:21 -07:00
051d74802a
fix(core): ensure that component views that have no bindings recurse into nested components / view containers.
2016-11-04 10:50:27 -07:00
f2bbef3e33
fix(core): allow to query content of templates that are stamped out at a different place
...
Previously, if a `TemplateRef` was created in a `ViewContainerRef`
at a different place, the content was not query able at all.
With this change, the content of the template can be queried
as if it was stamped out at the declaration place of the template.
E.g. in the following example, the `QueryList<ChildCmp>` will
be filled once the button is clicked.
```
@Component({
selector: ‘my-comp’,
template: ‘<button #vc (click)=“createView()”></button>’
})
class MyComp {
@ContentChildren(ChildCmp)
children: QueryList<ChildCmp>;
@ContentChildren(TemplateRef)
template: TemplateRef;
@ViewChild(‘vc’, {read: ViewContainerRef})
vc: ViewContainerRef;
createView() {
this.vc.createEmbeddedView(this.template);
}
}
@Component({
template: `
<my-comp>
<template><child-cmp></child-cmp></template>
</my-comp>
`
})
class App {}
```
Closes #12283
Closes #12094
2016-11-04 10:50:27 -07:00
e3687706c7
refactor(compiler): minor cleanup
2016-11-03 16:29:51 -07:00