Tobias Bosch
fd9b67537d
fix(url_resolver): always replace `package:` in Dart, even if it came from `baseUrl`.
...
Closes #4775
2015-10-15 16:57:54 -07:00
Julie Ralph
d7ab5d44a5
fix(testing): let DOM adapter dictate XHR implementation for tests
...
The test injector now uses an XHR implementation based on DOM.getXHR,
which allows the current DOM adapter to dictate which XHR impl should
be used.
To prevent the changes to DOM adapter from introducing undesired new
dependencies into the benchmarks, separate the async facade into
a promise facade which is reexported by facade/async.
See #4539
2015-10-15 12:12:27 -07:00
vsavkin
65c737fc95
feat(forms): add input[type=number] value accessor
...
Closes #4014
Closes #4761
2015-10-15 18:41:17 +00:00
Marc Laval
427860a5bd
chore(saucelabs): add Edge
...
Closes #4758
2015-10-15 18:20:41 +00:00
Tobias Bosch
a941fb08f7
fix(style_compiler): don’t resolve absolute urls that start with a `/` during compilation
...
Closes #4763
2015-10-15 11:13:52 -07:00
Tobias Bosch
cec8b58373
fix(compiler): explicitly support event bindings also on `<template>` elements
...
Although these events don’t fire events themselves, there might be directives on them that fire events.
Closes #4712
2015-10-15 10:08:22 -07:00
Marc Laval
b89c5bc581
fix(compiler): attribute case in IE9
...
Closes #4743
2015-10-15 10:18:15 +02:00
Tobias Bosch
7dde18b181
fix(style_compiler): don’t touch urls in stylesheets and keep stylesheets with absolute urls in templates
...
We can’t resolve relative urls (e.g. for images) in the compiler as
these urls are meant to be loaded in the browser
(unless we would inline images as base64…).
Also, keep `<link rel=“stylesheet”>` in templates that
reference absolute urls with e.g. `http://`. This
behavior was already present for `@import` rules
within stylesheets.
Closes #4740
2015-10-15 01:42:48 +00:00
Kevin Moore
a91ae291e4
fix(test) fix Dart annotation for integration_dart_spec.dart
2015-10-15 00:19:31 +00:00
vsavkin
b716d2335b
fix(forms): emit value changes after errors and status are set
...
Closes #4714
2015-10-14 19:36:43 +00:00
vsavkin
bfbf18d983
feat(query): add filter and reduce to QueryList
...
Closes #4710
2015-10-13 23:52:17 +00:00
vsavkin
e82a35d1fd
feat(forms): add minlength and maxlength validators
...
Closes #4705
2015-10-13 21:42:12 +00:00
Marc Laval
e15e2428c5
fix(test): command compiler attr merge test in IE
2015-10-13 13:39:32 -07:00
Matias Niemelä
1bc35208df
test(router): add testing code for querystring serialization
2015-10-13 12:06:22 -07:00
Brian Ford
c0b7bae9d3
test(router): add missing tests for the url parser
2015-10-13 12:06:22 -07:00
Julie Ralph
f529236bfc
refactor(test): rename test_lib to testing
...
Old test_lib is now testing_internal
test_lib_public is now testing
2015-10-13 10:36:49 -07:00
Julie Ralph
a1fa2e472f
feat(test): Add an external version of the test library
...
Adds test adapters for TypeScript and JavaScript only, exported
as part of the test_lib module. These work with the Jasmine test
framework, and allow use of the test injector within test blocks
via the `inject` function.
See #4572 , #4177 , #4035 , #2783
This includes the TestComponentBuilder. It allows using the
test injector with Jasmine bindings, and waits for returned
promises before completing async test blocks.
2015-10-12 23:14:03 -07:00
vsavkin
1aeafd31bd
feat(di): change the params of Provider and provide to start with "use"
...
Closes #4684
2015-10-12 21:09:09 +00:00
Igor Minar
6abed8d996
fix(test_lib): don't mock out XHR via MockXHR by default in tests
...
This is useful for the compiler tests, but otherwise it's not useful.
Additionally if an application has external templates (as is common) then
we should actually fetch these templates in tests.
Fixes #4539
Closes #4682
2015-10-12 17:45:19 +00:00
Tobias Bosch
eacc8e3803
fix(compiler): merge `class` and `style` attributes from the element with the host attributes
...
Closes #4583
Closes #4680
2015-10-12 15:35:49 +00:00
Marc Laval
0def28e594
fix(compiler): shadow CSS @import test in some browsers
...
Closes #4629
2015-10-12 00:28:07 +02:00
vsavkin
1eb0162cde
feat(di): rename Binding into Provider
...
Closes #4416
Closes #4654
2015-10-11 05:13:31 +00:00
vsavkin
7c6130c2c5
feat(core): desugar [()] to [prop] and (prop-change)
...
BREAKING CHANGE
Before
```
<cmp [(prop)]="field"> was desugared to <cmp [prop]="field" (prop)="field=$event">
```
After
```
<cmp [(prop)]="field"> is desugared to <cmp [prop]="field" (prop-change)="field=$event">
```
Closes #4658
2015-10-11 02:58:13 +00:00
Alex Rickabaugh
90191ce261
refactor(router): use ApplicationRef to provide the first bootstrapped component as ROUTER_PRIMARY_COMPONENT automatically.
...
This removes the routerBindings function as it is no longer necessary. ROUTER_BINDINGS will automatically pick the first bootstrapped component to satisfy ROUTER_PRIMARY_COMPONENT.
BREAKING CHANGE:
Before: bootstrap(MyComponent, [routerBindings(myComponent)]);
After: bootstrap(MyComponent, [ROUTER_BINDINGS]);
Closes #4643
2015-10-10 05:19:55 +00:00
Misko Hevery
cd90e6ed8f
feat(ngUpgrade): support for content project from ng1->ng2
2015-10-09 21:25:45 -07:00
Alex Eagle
95f984615b
Produce .d.ts files from our typescript compilation.
...
Deliver them into our npm module output so users can consume them directly.
Fixes #3082
2015-10-10 02:18:33 +00:00
Tobias Bosch
6207b1af88
feat(ngFor): support a custom template
...
Part of #1989
Closes #4637
2015-10-09 21:52:59 +00:00
Victor Berchet
a8c34ae290
refactor(MapWrapper): drop delete(), get(), forEach() and size
...
Closes #4618
2015-10-09 20:07:43 +00:00
vsavkin
f3ab527688
resolve rebase conflicts
2015-10-08 13:59:09 -07:00
vsavkin
bba0248989
fix(core): remove NgZone_ and use NgZone instead
2015-10-08 13:55:26 -07:00
vsavkin
14fa00791e
fix(analyzer): fix dart analyzer errors
2015-10-08 13:54:44 -07:00
vsavkin
d60c7a9118
fix(tests): fixes public api spec
2015-10-08 13:54:44 -07:00
vsavkin
d63f3c123e
fix benchmarks
2015-10-08 13:54:44 -07:00
vsavkin
8b725c77fd
fix(tests): fix tests
2015-10-08 13:54:44 -07:00
Alex Eagle
5458036de7
fix(typings): update test.typings for abstract superclasses
2015-10-08 13:54:43 -07:00
Alex Eagle
6075509f26
chore(typing): extract abstract superclasses to replace @private constructors
2015-10-08 13:54:43 -07:00
Brian Ford
ee32b1bc37
feat(router): allow async routes to be defined with "loader"
2015-10-08 12:29:14 -07:00
Tobias Bosch
6d4bd5d901
fix(render): recurse into components/embedded templates not until all elements in a view have been visited
...
Fixes #4551
Closes #4601
2015-10-08 11:43:21 -07:00
Yegor Jbanov
04b3dee667
fix(css): when compiling CSS, leave absolute imports alone
...
Closes #4592
2015-10-08 16:39:32 +00:00
Victor Berchet
6b00b60488
fix(XhrBackend): setRequestHeader takes a string arg
...
Closes #4597
2015-10-08 15:59:10 +00:00
Victor Berchet
aee176115b
refactor(ListWrapper): drop forEach and removeLast
...
Closes #4584
2015-10-07 17:17:31 +00:00
Victor Berchet
a0277f1b3a
refactor: add missing types for ts2dart
...
Closes #4568
2015-10-07 06:39:14 +00:00
Victor Berchet
aaa215514b
refactor(ListWrapper): get ride of ListWrapper.map
2015-10-07 06:39:14 +00:00
Igor Minar
15ab6f6ea8
fix(location): improve the 'No base href set' error message
2015-10-06 20:59:02 -07:00
vsavkin
dea6a4593b
cleanup(core): making @View optional
...
Closes #4566
2015-10-07 02:16:42 +00:00
vsavkin
bd31b01690
feat(core): add syntax sugar to make @View optional
2015-10-07 02:16:42 +00:00
Tim Blasi
a4869c874b
build(dart): Remove unused Dart benchmarks
2015-10-06 14:11:03 -07:00
Alex Eagle
6093e28b61
fix(typings): repair broken typechecks
...
We had the typechecker disabled by accident, and many problems snuck in
Fixes #4507
Closes #4508
2015-10-06 13:28:17 +00:00
Tobias Bosch
0b3e4fa090
refactor(core): move `ViewEncapsulation` and `ViewType` to the right places
...
Closes #4526
2015-10-05 11:22:21 -07:00
Tobias Bosch
0299d4af00
fix(core): keep styles for `ViewEncapsulation.Native` isolated per component
...
BREAKING CHANGE:
- `Renderer.registerComponent` now takes an additional argument.
Fixes #4513
Closes #4524
2015-10-05 10:34:42 -07:00